Multiple Choice Question Demo
Questions
- What is the primary function of the Java Virtual Machine (JVM)?
- A) To compile Java source code into bytecode
- B) To execute Java bytecode
- C) To optimize Java code for specific hardware
- D) To manage database connections in Java applications
- Which component of the JVM is responsible for loading, linking, and initializing Java classes?
- A) Garbage Collector
- B) JIT Compiler
- C) Class Loader
- D) Runtime Data Area
- What is the purpose of the JVM's Just-In-Time (JIT) compiler?
- A) To interpret Java bytecode line by line
- B) To compile Java source code into bytecode
- C) To convert bytecode into native machine code for faster execution
- D) To manage memory allocation for Java objects