Module: | Core Architecture, Basics & Control Flow
Q2: Consider the following statements regarding the core Java architecture components (JDK, JRE, and JVM):
1. The Java Runtime Environment (JRE) is a software package that contains the Java Virtual Machine (JVM) along with standard class libraries required to run Java applications.
2. The Java Development Kit (JDK) is a comprehensive toolkit that includes the JRE plus development tools such as the compiler (javac) and debugger.
3. The Java Virtual Machine (JVM) is a hardware processor unit physically installed on the host machine to execute Java bytecode.
Which of the above statements is/are correct?
2. The Java Development Kit (JDK) is a comprehensive toolkit that includes the JRE plus development tools such as the compiler (javac) and debugger.
3. The Java Virtual Machine (JVM) is a hardware processor unit physically installed on the host machine to execute Java bytecode.
Which of the above statements is/are correct?
✅ Correct Answer: B
🎯 Quick Answer:
The correct combination is 1 and 2. Statement 3 is incorrect because the JVM is a software-based abstract computing machine, not a physical hardware processor.Structural Breakdown: The JDK encapsulates the JRE and development tools.
The JRE encapsulates the JVM, core library classes (like java.lang, java.util), and supporting files.
The JVM further breaks down into a ClassLoader subsystem, a memory area, and an execution engine.
Historical/Related Context: Oracle provides these distinct packages so users only install what they need.
A standard end-user running a Java application only needs the JRE, while a software engineer needs the full JDK to write and compile new code.
Causal Reasoning: The JVM is termed "virtual" precisely because it emulates a physical machine's instruction execution capabilities in software.
This emulation allows it to act as an abstraction layer over diverse underlying operating systems.