3. What is JAVA?
Java is a high level Computer Programming
Language that is class-based, object-oriented
which can be read and written easily by
humans.
Java originally developed by Sun microsystem in
1995 but currently owned by Oracle.
4. History of JAVA
In the early nineties , JAVA was created by a team lead
by James Gosling for Sun Microsystems. The language
was initially called "OAK " and OAK renamed to JAVA
in 1994. JAVA was first publically released as Java 1.0
in 1995. It was originally designed for use on digital
mobile devices, such as cellphones.
James Gosling is known as the father
of the JAVA programming language,
who is Canadian Computer Scientiest.
5. Features of JAVA???
Platform Independent Programming Language.
WORA(Write Once, Run Anywhere).
Object Oriented.
Support Web based Application.
Robust.
Fast and Secure.
Reliable.
Multi-threaded.
6. How is Java platform independent?
Whenever, a program is written in JAVA , the java
compiler compiles it.
The result of the JAVA compiler is the .class file or
the byte code which is not the machine native code.
The byte code generated is a non-executable code
and needs an interpreter to execute on a machine.
This interpreter is the JVM and the Byte code is
executed by the JVM.
And finally program runs to give the desired output.
7. In case of C or C++ (language that are not platform independent) , the compiler generates
an .exe file which is OS dependent. When we try to run this .exe file on another OS it does
not run, since it is OS dependent and hence is not compatible with the other OS.
How is Java platform independent?