0% found this document useful (0 votes)
7 views3 pages

JVM, Jre&jdk

JVM (Java Virtual Machine) allows computers to run Java programs by translating bytecode into native machine code. JRE (Java Runtime Environment) is a software package that includes JVM and necessary libraries to run Java applications, while JDK (Java Development Kit) is a comprehensive toolkit for developing Java applications that includes both JRE and JVM along with additional development tools. Thus, JDK encompasses both JRE and JVM.

Uploaded by

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

JVM, Jre&jdk

JVM (Java Virtual Machine) allows computers to run Java programs by translating bytecode into native machine code. JRE (Java Runtime Environment) is a software package that includes JVM and necessary libraries to run Java applications, while JDK (Java Development Kit) is a comprehensive toolkit for developing Java applications that includes both JRE and JVM along with additional development tools. Thus, JDK encompasses both JRE and JVM.

Uploaded by

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

Java

What is JVM?
JVM (Java Virtual Machine) is an machine that enables your computer to run a Java program.
When you run the Java program, Java compiler first compiles your Java code to bytecode. Then, the JVM translates
bytecode into native machine code (set of instructions that a computer's CPU executes directly).

What is JRE?
JRE (Java Runtime Environment) is a software package that provides Java class libraries, Java Virtual Machine (JVM),
and other components that are required to run Java applications.
JRE is the superset of JVM.
What is JDK?
JDK (Java Development Kit) is a software development kit required to develop applications in Java. When you download JDK,
JRE is also downloaded with it.
In addition to JRE, JDK also contains a number of development tools (compilers, JavaDoc, Java Debugger, etc).
So we can say tat JDK contains both JRE and JVM in it.

Relationship between JVM, JRE, and JDK

You might also like