Question 4 • Pages 1–2
Difference B/W JDK, JRE and JVM
JDK (Java Development Kit) — Java program ko develop, compile (
javac), debug aur run karne ke liye avashyak tools.Full kit with development tools (javac, debugger) + JRE to build and run Java apps.
JRE (Java Runtime Environment) — Java program chalane ke liye JVM + avashyak libraries aur runtime components deta hai.Provides JVM + core libraries and runtime components needed to run Java programs.
JVM (Java Virtual Machine) — Java ke bytecode ko execute karti hai, jisse Java program run hota hai.Executes Java bytecode (
.class) so the Java program runs on the host machine.
Java Source Code.java
→
JDK Compilerjavac
→
Bytecode.class
→
JVMExecution
→
Program OutputResult