• HTML
  • CSS
  • JAVASCRIPT
  • JAVA
  • HTML
  • CSS
  • JAVASCRIPT
  • JAVA

JDK, JRE and JVM

The basic concepts of the Java programming language are JDK, JRE, and JVM. These ideas are not applied to programming. However, as Java developers, we have to be aware of them.

JVM

The core of the Java programming language is JVM. The Java Virtual Machine (JVM) is in responsible for translating byte code into machine-specific code when we run a Java program. Additionally platform-dependent, JVM offers essential Java features like memory management, garbage collection, security, and more. Java options allow us to configure the JVM, which is customized. For instance, giving JVM the minimum and maximum amount of RAM. Because it offers an interface independent of the underlying operating system and hardware of the machine, JVM is known as virtual. Java programs can be written once and run anywhere due to their independence from both hardware and operating systems.

JRE

JRE is the implementation of JVM. It provides a platform to execute java programs. JRE stands for Java Runtime Environment. It consist a set of libraries + other files that JVM uses at runtime. If you just want to execute a java program, you can install only JRE. You don’t need JDK because there is no development or compilation of java source code is required.

JDK

JDK (Java Development Kit) is a software development kit to develop applications in Java. In addition to JRE, JDK also contains number of development tools (compilers, JavaDoc, Java Debugger etc.).JDK is primarily used for code execution and has prime functionality of development.

JDK is platform dependentJDK = Java Runtime Environment (JRE) + Development tools

 

JDK vs JRE vs JVM

Let’s look at some of the important differences between JDK, JRE, and JVM.

  1. JDK is for development purpose whereas JRE is for running the java programs.
  2. JDK and JRE both contains JVM so that we can run our java program.
  3. JVM is the heart of java programming language and provides platform independence.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Course Content

  • JAVA
    • C++ vs Java
    • Features of Java
    • First Java Program
    • How to set Java path?
    • Internal Working of Java Program
    • Java Control Statements
    • Java Datatypes
    • Java Operators
    • Java Variables
    • JDK, JRE and JVM
    • Keyword
    • What is java

© 2025. ITTrainingWala