Exams Knowledge Hub

MCQs for Competitive Exams, School & College Exams

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?
A
Only 1
B
Only 1 and 2
C
Only 2 and 3
D
1, 2, and 3
✅ 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.
Concept Definition: The Java architecture relies on three interrelated layers: the JDK for full software development, the JRE for providing the localized runtime environment, and the JVM as the core execution engine.
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.