What is the difference between JDK, JRE and JVM? How does a Java program go from source to main?
Short answer
The JVM runs bytecode. The JRE = JVM + standard library. The JDK = JRE + build tools like javac.
3 points to say:
- JDK to write, JRE to run, JVM executes.
javacmakes bytecode that runs wherever a JVM runs.- A server running a JAR only needs a runtime (
-jreimage).
Keep reading the deep dive
Create a free account to read the full explanation and follow-up questions, mark questions as studied and review them on a schedule.