Difference between JDK, JRE, JVM

Answers were Sorted based on User's Feedback



Difference between JDK, JRE, JVM..

Answer / ranganathkini

JDK or the Java Development Kit is a set of a Java compiler,
a Java interpreter, developer tools, Java API libraries,
documentation which can be used by Java developers to
develop Java-based applications.

JRE or the Java Runtime Environment is a minimum set that
includes a Java interpreter, Java API libraries, Java
browser plug-in, which make up the minimum environment to
execute Java-based applications.

The JVM or Java Virtual Machine is the core of the Java
platform and is a part of both the JDK and JRE that
translates Java bytecodes and executes them as native code
on the client machine.

JDK includes a JRE as as subset.

Is This Answer Correct ?    412 Yes 48 No

Difference between JDK, JRE, JVM..

Answer / pradeep panwar(sse)

JDK: Java Developer Kit contains tools needed to develop
the Java programs, and JRE to run the programs. The tools
include compiler (javac.exe), Java application launcher
(java.exe), Appletviewer, etc…

Compiler converts java code into byte code. Java
application launcher opens a JRE, loads the class, and
invokes its main method.

You need JDK, if at all you want to write your own
programs, and to compile them. For running java programs,
JRE is sufficient.

JRE: Java Runtime Environment contains JVM, class
libraries, and other supporting files. Actually JVM runs
the program, and it uses the class libraries, and other
supporting files provided in JRE. If you want to run any
java program, you need to have JRE installed in the system.

JVM: Java Virtual Machine interprets the bytecode into the
machine code depending upon the underlying operating system
and hardware combination. It is responsible for all the
things like garbage collection, array bounds checking, etc…
JVM is platform dependent.

The JVM is called "virtual" because it provides a machine
interface that does not depend on the underlying operating
system and machine hardware architecture. This independence
from hardware and operating system is a cornerstone of the
write-once run-anywhere value of Java programs.

Is This Answer Correct ?    158 Yes 20 No

Difference between JDK, JRE, JVM..

Answer / p.l.n.kumar

JDK is a software bundle consists of binary files such as
(javac,java,javadoc,jdb,javap,rmic....),java library files
(both old and new)and some header files. Development
environment requires this software.

JRE is also a software bundle same as JDK excluded with
some binary files( especially compiler - javac and
rmic ).Required to run applications of production
environment ( on client host system ).

JVM is available in both JDK and JRE. Java.exe file is used
to initiate VM process.The default heap size is 2MB and the
Max.heap size is 64MB.VM comes in two flavours...

-Hotspot client VM
-Hotspot server VM

Is This Answer Correct ?    85 Yes 50 No

Difference between JDK, JRE, JVM..

Answer / alok kumar singh

JDK- JDK stands for java development kit which contain jre
and jvm and other supporting tools for development of programs.

JRE- JRE stands for java runtime environment which provide
the neccesory jar file that compile source code into byte
code. and it contain java virtual machine .

JVM- JVM stands for java virtual machine that convert byte
code into native code . the native code are those code that
are understandable by machine.

Is This Answer Correct ?    55 Yes 21 No

Difference between JDK, JRE, JVM..

Answer / tarun

JDK : JDK contails JRE and JVM both. JDK is required to
complie. JDK contains of many .exe supporting files and
javac, javap, java,javaw, javaws ,all these are helping to
compile the java programs. If we have to compile our own
written java program JDK should be define in our classpath.
after compilation it converts the code into the bytecode.

JRE : JRE is needed for run time environment. It contains JVM.

JVM : Java Virtual Machine converts the bytecode into user
understandable code. without JVM we cannot run our Java
codes on any system. JVM converts the bytecode got after
compilation into machine level code by understanding the
hardware and operating system combination.

Is This Answer Correct ?    35 Yes 11 No

Difference between JDK, JRE, JVM..

Answer / sylvie

JDK contains tools to develop the java programs
JRE contains torun the programs
JVM provide a platform independent way of executing code

Is This Answer Correct ?    27 Yes 12 No

Difference between JDK, JRE, JVM..

Answer / saravanakumar m

JDK (Java Development Kit)

Java Developer Kit contains tools needed to develop the Java
programs, and JRE to run the programs. The tools include
compiler (javac.exe), Java application launcher (java.exe),
Appletviewer, etc…

Compiler converts java code into byte code. Java application
launcher opens a JRE, loads the class, and invokes its main
method.

You need JDK, if at all you want to write your own programs,
and to compile the m. For running java programs, JRE is
sufficient.

JRE is targeted for execution of Java files

i.e. JRE = JVM + Java Packages Classes(like util, math,
lang, awt,swing etc)+runtime libraries.

JDK is mainly targeted for java development. I.e. You can
create a Java file (with the help of Java packages), compile
a Java file and run a java file
JRE (Java Runtime Environment)

Java Runtime Environment contains JVM, class libraries, and
other supporting files. It does not contain any development
tools such as compiler, debugger, etc. Actually JVM runs the
program, and it uses the class libraries, and other
supporting files provided in JRE. If you want to run any
java program, you need to have JRE installed in the system

The Java Virtual Machine provides a platform-independent way
of executing code; programmers can concentrate on writing
software, without having to be concerned with how or where
it will run.

If u just want to run applets (ex: Online Yahoo games or
puzzles), JRE needs to be installed on the machine.
JVM (Java Virtual Machine)

As we all aware when we compile a Java file, output is not
an 'exe' but it's a '.class' file. '.class' file consists of
Java byte codes which are understandable by JVM. Java
Virtual Machine interprets the byte code into the machine
code depending upon the underlying operating system and
hardware combination. It is responsible for all the things
like garbage collection, array bounds checking, etc… JVM is
platform dependent.

The JVM is called "virtual" because it provides a machine
interface that does not depend on the underlying operating
system and machine hardware architecture. This independence
from hardware and operating system is a cornerstone of the
write-once run-anywhere value of Java programs.

There are different JVM implementations are there. These may
differ in things like performance, reliability, speed, etc.
These implementations will differ in those areas where Java
specification doesn’t mention how to implement the features,
like how the garbage collection process works is JVM
dependent, Java spec doesn’t define any specific way to do
this.

Is This Answer Correct ?    2 Yes 1 No

Difference between JDK, JRE, JVM..

Answer / rajiv

In simple wecan say that JDK is the superset which contains both JRE & JVM.

JVM(java virtual machine) converts the byte code to machine code.

Is This Answer Correct ?    2 Yes 1 No

Difference between JDK, JRE, JVM..

Answer / banti prajapati

Java Virtual Machine (JVM) is an abstract computing machine. Java Runtime Environment (JRE) is an implementation of the JVM. Java Development Kit (JDK) contains JRE along with various development tools like Java libraries, Java source compilers, Java debuggers, bundling and deployment tools.

JVM becomes an instance of JRE at runtime of a java program. It is widely known as a runtime interpreter. The Java virtual machine (JVM) is the cornerstone on top of which the Java technology is built upon. It is the component of the Java technology responsible for its hardware and platform independence. JVM largely helps in the abstraction of inner implementation from the programmers who make use of libraries for their programmes from JDK.

Is This Answer Correct ?    2 Yes 1 No

Difference between JDK, JRE, JVM..

Answer / pathy

The JDK is the Java Development Kit: everything you need to
develop programs in Java (the compiler and other tools).
The JRE is the Java Runtime Environment: everything you need
to run Java programs.
The JVM is the Java Virtual Machine, which is the core part
of the JRE that actually runs Java code.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

Can we call a non-static method from inside a static method?

0 Answers  


What is the largest number a double can hold?

0 Answers  


Can we declare a static variable inside a method?

0 Answers  


What super () does in java?

0 Answers  


What is an object's lock and which object's have locks in java programming?

0 Answers  






Where import statement is used in a java program?

0 Answers  


What is difference between equals and hashcode method?

0 Answers  


What does sizeof return?

0 Answers  


What is the use of pattern in java?

0 Answers  


Java is pass by value or pass by reference? Explain

0 Answers  


Is math an abstract class in java?

0 Answers  


What do negative exponents mean?

0 Answers  


Categories