Difference between JDK, JRE, JVM

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the independent variable in an experiment?

747


What is the list interface in java programming?

796


what is static import in java? Explain

785


Is java same as core java?

820


Can we execute a program without main?

754


What is JDBC Driver interface?How can you retrieve data from the ResultSet

1778


23. Storage space in java is of the form Stack Queue Heap List 24. What is java code embedded in a web page known as Applets Servlets scriptlets snippets 25. Which of the following attributes are compulsory with an tag?. code,height & width. 26. What does 'CODEBASE' in an applet tag specify?. Files absolute path.

2261


What is illegal identifier in java?

764


Is integer immutable in java?

742


How do you create a first line indent?

740


What is the difference between jvm and jre? What is an interface?

796


What restrictions are placed on method overriding?

872


What is queue in java?

816


What are pass by reference and pass by value?

707


Differentiate between nested and inner class in java.

777