963.introduction To Java
963.introduction To Java
What is JAVA?
JAVA technology is both a programming language
and a platform.
The Java programming language is the language in
which Java applications, applets, servlets, and
components are written.
The Java platform is the predefined set of Java
classes that exist on every Java installation; these
classes are available for use by all Java programs.
The Java platform is also sometimes referred to as
the Java runtime environment or the core Java APIs
(application programming interfaces).
History of Java
‘B’ leads to ‘C’ evolved into ‘C++’ sets the stages for ‘Java’
In 1990, Sun Microsystems began a project called Green
Project to develop software for consumer electronics.
James Gosling, a veteran engineer was assigned to the
new Green Project.
Gosling began writing software in C++ for embedding into
such items as toasters, VCRs etc. But soon he realized that
C++ was the wrong tool for the job as it is susceptible to
bugs that can crash the system. Gosling’s solution to the
problems of C++ was a new language called Oak.
Oak preserved the familiar syntax of C++ but
omitted the potentially dangerous features
like explicit resource references, pointer
arithmetic and operator overloading, etc.
When the World Wide Web became popular
in 1994, Sun realized that Oak was the
perfect programming language for the Web.
Thus in 1994, they completed work on a
product known as Web Runner was later
renamed as Hot Java. Finally, in 1995, Oak
was renamed Java and the team announced
that the Netscape Navigator Internet browser
would incorporate Java technology.
Features of Java
Simple
Architecture Neutral
compiler loader
Source Code
.obj .exe
.cpp .cpp
javac JIT
Source Code .class
(JVM) Native Code
.java file
UNIX
Bytecode Verifier
System
SERVER
JIT
UNIX system
machine level
instructions
(JVM) (native code)
Class Loader
Class Files
Containing
Bytecodes Bytecode Verifier
Windows/Pe JIT
NETWORK ntium Pentium system
machine level
System instructions
(native code)
Working of JAVA on Internet
Internet
Client System
Class Loader