01What is the difference between JDK, JRE and JVM?Beginner
- JVM (Java Virtual Machine) runs compiled bytecode and manages memory, threads and garbage collection.
- JRE (Java Runtime Environment) is the JVM plus the core class libraries needed to run a Java program.
- JDK (Java Development Kit) is the JRE plus the tools to build programs, such as the compiler
javac,jarand the debugger.
To run a program you need a runtime; to write and compile one you need the JDK. Since Java 11, Oracle and most vendors ship the JDK only.
