Java / JVM Architecture (Java21) Interview questions
Define JVM, JRE, and JDK?
These three terms describe increasingly larger packages, each one containing the one before it.
| Term | What it is |
| JVM | The runtime engine that executes bytecode; it does not include libraries or development tools. |
| JRE | JVM plus the core class libraries needed to run (but not build) Java applications. |
| JDK | JRE plus development tools - javac, javap, jshell, and debuggers - needed to build Java applications. |
Since Java 11, Oracle stopped shipping a separate standalone JRE package, but the JRE still exists conceptually as the subset of the JDK needed at runtime.
More Related questions...