0% found this document useful (0 votes)
98 views4 pages

Difference Between JDK, JRE and JVM

This document discusses the differences between the JDK, JRE, and JVM. The JVM is an abstract machine that provides a runtime environment for executing Java bytecode and performs tasks like loading, verifying, and executing code. The JRE is the implementation of the JVM and contains libraries and files used by the JVM at runtime. The JDK contains the JRE plus development tools and is used to both develop and run Java applications, while the JRE alone is only needed to run existing Java applications.

Uploaded by

monisha.jalin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
98 views4 pages

Difference Between JDK, JRE and JVM

This document discusses the differences between the JDK, JRE, and JVM. The JVM is an abstract machine that provides a runtime environment for executing Java bytecode and performs tasks like loading, verifying, and executing code. The JRE is the implementation of the JVM and contains libraries and files used by the JVM at runtime. The JDK contains the JRE plus development tools and is used to both develop and run Java applications, while the JRE alone is only needed to run existing Java applications.

Uploaded by

monisha.jalin
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 4

Difference between JDK, JRE and JVM

1. Brief summary of JVM

2. Java Runtime Environment (JRE)

3. Java Development Kit (JDK)

Understanding the difference between JDK, JRE and JVM is important in Java. We are having
brief overview of JVM here.

If you want to get the detailed knowledge of Java Virtual Machine, move to the next page.
Firstly, let's see the basic differences between the JDK, JRE and JVM.

JVM
JVM (Java Virtual Machine) is an abstract machine. It is a specification that provides runtime
environment in which java bytecode can be executed.

JVMs are available for many hardware and software platforms. JVM, JRE and JDK are
platform dependent because configuration of each OS differs. But, Java is platform
independent.

The JVM performs following main tasks:

o Loads code

o Verifies code

o Executes code

o Provides runtime environment

JRE
JRE is an acronym for Java Runtime Environment. It is used to provide runtime
environment.It is the implementation of JVM. It physically exists. It contains set of libraries
+ other files that JVM uses at runtime.

Implementation of JVMs are also actively released by other companies besides Sun Micro
Systems.
JDK
JDK is an acronym for Java Development Kit.It physically exists.It contains JRE +
development tools.
JAVA Difference between JDK,JRE
and JVM
JDK
JDK stand for Java development kit.Just think when we going to develop any
kind of Java application it goes through two phase.

First phase :We develop the program.


Second phase:We executing or run or compile the Java program.
So to Develop and run the Java application the required environment is JDK.
JRE
JRE stand for Java runtime environment.

Only to run Java application the required environment is JRE.

Example :
We Develop a Java application and give the client and said him please run it
your machine it full fill your requirement.

Here Client is not responsible for Develop he only responsible for run the Java
application

JVM
JVM stand for Java virtual machine.

JVM is responsible for run Java program in JRE.

JVM execute the Java program line by line so it is a interpreter.

Suppose one of your Java program having 10 line and JVM find a error in line 5
then the remaining line can’t be executed as it execute the Java program line by
line.

JDK = JRE +Development tools.

JRE=JVM+ Library

You might also like