What is difference between JDK, JRE and JVM
If you
want to get the detailed knowledge of Java Virtural Machine, move to the next
page. Firstly, let's see the basic differences between the JDK, JRE and JVM.
JVM(Java Virtual Machine)
|
JVM (
Java Virtual Machine) is known as virtual because jvm output is not machine
dependent which makes java as a platform independent. When
we compile a java program then output
is in ‘.class’ file instead of .exe file . this class file is known as byte
code.
JVM is
an enviourment in which java byte code is executed .
JVM ,
JDK and Jre are not platform independent they are designed specifically for
different operating system but the
byte code provided by every jvm is same which is platform indepent .
|
|
The JVM
is responsible for following tasks :
Step 1 :It Loads the code written by user.
Step 2 : it Verifies the
code before executing
Step 3 : Executes code
and generate byte code
Step 4 : Provides a runtime environment for byte code
|
JRE(Java RunTime Environment)
JRE is known as Java Runtime Environment which provide
enviourment for execution . jre is the
implementation of JVM. JRE contains set of libraries files which is used by JVM
at runtime .
JDK (Java Development Kit)
Java
Developer Kit is set of tools which is
required to develop the Java programs
and JRE is required to execute java programs. Jdk contain java compile , Java application launcher and Appletviewer, etc…
Java compiler
convert the java code into byte code .
Jdk contain JVM +JRE and other tools .

No comments:
Post a Comment