Preliminaries of JAVA
Preliminaries of JAVA
What is JAVA
Java is one of the most popular computer programming langue still sued by
computer programmers all around the world
History
Java programing language initiated in 1991 James Gosling, Mike Sheridan, and
Patrick Naughton
The name “Java” was inspired by the coffee of Indonesian island JAVA
In present day, Java is one of most popular programing language in the world
Role of Operating System and Java
Which means, high level computer programs will depends on the OS(platform)
and if the matching OS is not present, program won’t execute
3+5=8
mov 01010
01001
How Java Achieved “Platform Independency”
So in-between the compiler and the OS, there is another software system
names “Java Virtual Machine” (JVM) or “Java Runtime Environment” (JRE)
Process of Executing a JAVA program
To execute a Java program, you need to install both JDK and the JVM as per
the previous slide (Will be discussing at the end of this)
Then you can compile(build) your program, in this step your program will
convert in to platform independent “Java Byte Code”
Now this Byte code can be executed anywhere, where a JVM is present. At
the execution, JVM will convert the Byte code into Machine Codes
How a Java Program is Executed
Machine Code
JDK Java Byte Code JRE