0% found this document useful (0 votes)
11 views

Lecture 2

Uploaded by

Neeraj Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views

Lecture 2

Uploaded by

Neeraj Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Course on

Object Oriented Programming using Java

Lecture -2
Introduction & Features of Java

By
Roopesh Kumar Yadav
Lecturer- Computer
Government Polytechnic Jaunpur
History of Java
• James Gosling, Mike Sheridan, and Patrick Naughton
initiated the Java language project in June 1991. The small
team of sun engineers called Green Team.
• Initially designed for small, embedded systems in electronic
appliances like set-top boxes.
• Firstly, it was called "Greentalk" by James Gosling, and the
file extension was .gt.
• After that, it was called Oak and was developed as a part of
the Green project.
• Later, Java technology was incorporated by Netscape as was
suited for networking.
Why Java is named Java?
• Java was called Oak as it is a symbol of strength and chosen as a national
tree of many countries like the U.S.A., France, Germany, Romania, etc.
• The team wanted something that reflected the essence of the technology:
revolutionary, dynamic, lively, cool, unique, and easy to spell and fun to say.
• In 1995, Oak was renamed as "Java" because it was already a trademark by
Oak Technologies.
• Java is an island of Indonesia where the first coffee was produced (called java coffee).
• Initially developed by James Gosling at Sun Microsystems (which is now a
subsidiary of Oracle Corporation) and released in 1995.
• In 1995, Time magazine called Java one of the Ten Best Products of 1995.
• JDK(Java Development Kit) 1.0 released in January 23, 1996.
What is Java?
• Java is a high-level programming language
• Java runs on a variety of platforms, such as Windows, Mac OS, and the
various versions of UNIX.
• It is Class-based and an object-oriented programming language.
• It is developed for the distributed environment and software development
for consumer electronic devices such as TVs, VCRs, toasters, etc.
• Java Programming Language is a platform-independent language, which
means there is no limitation to any particular hardware or operating
system. It provides users the facility to ‘write once, run anywhere’. Many
operating systems such as Sun Solaris, RedHat, Windows, etc., support
Java.
Current Popularity
Features of Java
Features of Java
• Object Oriented: Java is an object-oriented programming language.
Everything in Java is an object. Object-oriented means we organize our
software as a combination of different types of objects that incorporates
both data and behavior.
• Simple: The language is easy to learn because its syntax is simple and easy
to understand. It has also removed many complicated methods as compared
to C++ (i.e. explicit pointers, operator overloading, etc…).
• Secured: With Java's secure feature it enables to develop virus-free, tamper-
free systems. Authentication techniques are based on public-key encryption.
• Robust: Simply means of Robust are strong. It is robust or strong
Programming Language because of its capability to handle Run-time Error,
automatic garbage collection, the lack of pointer concept, Exception
Handling. All these points make It robust Language.
Features of Java
• Platform Independent: Java is different from other programming
languages such as C and C++ which are compiled as platform-specific.
But Java is platform-independent, it is guaranteed to be write-once,
run-anywhere language. On compilation Java program is compiled
into bytecode. This bytecode is platform independent and can be run
on any machine, plus this bytecode format also provide security. Any
machine with Java Runtime Environment can run Java Programs.
Features of Java
• Architectural Neutral: A Language or Technology is said to be
Architectural neutral which can run on any available processors in the
real world without considering their development and compilation.
Features of Java
• Portable: Java is portable because it facilitates you to carry the Java
bytecode to any platform. It doesn't require any implementation. If
any language supports platform independent and architectural
neutral feature known as portable. The languages like C, C++, Pascal
are treated as non-portable language. It is a portable language.
According to SUN microsystem.

• Dynamic: Java is a dynamic language. It supports dynamic loading of


classes. It means classes are loaded on demand. It also supports
functions from its native languages, i.e., C and C++. Java supports
dynamic compilation and automatic memory management (garbage
collection).
Features of Java
• Interpreted: During compilation, Java compiler converts the source
code of the program into byte code. This byte code can be executed
on any system machine with the help of Java interpreter in JVM.
• High Performance: Java is an interpreted language, so it will never be
as fast as a compiled language like C or C++. But, Java enables high
performance with the use of just-in-time compiler.
• Multi-threaded: With this feature, the Java application can perform
many tasks simultaneously. Thread is the separate program, executing
concurrently. The advantage of using multi-threading is that it shares
the common memory area so no memory will be wasted.
Features of Java
• Distributed: Java provides the facility to create a distributed
application. RMI and EJB are used to develop distributed applications.
It enables us to access the files by calling the methods from any
machine on the internet.
Applications of Java
• Desktop GUI Applications
• Mobile Applications
• Enterprise Applications
• Scientific Applications
• Web-based Applications
• Embedded Systems
• Big Data Technologies
• Distributed Applications
• Cloud-based Applications
• Web servers and Application servers
• Software Tools
• Gaming Applications
Thank You

You might also like