DEV Community

Eya Filali
Eya Filali

Posted on

Understanding JDK, JRE, and JVM (Clear & Simple Explanation)

1. What is the JDK?
The Java Development Kit (JDK) is a collection of software tools used to develop, compile, and run Java programs.
It includes:

  • JRE (for running Java programs)
  • Development tools such as: [ javac : java compiler / jdb: java debuggr] and other utilities used during the development.

2. What is the JRE?
The Java Runtime Environment (JRE) is needed only to run Java applications.
You don’t need the JDK unless you want to compile code.
The JRE contains:

  • JVM (Java Virtual Machine)
  • Java class libraries (e.g., networking, collections, I/O)
  • Other runtime components

3. What is the JVM?
The Java Virtual Machine (JVM) is the core execution engine of java. It is responsible for compiling your Java code (.java file) to bytecode (.class file) and then into native machine code.

Top comments (0)