Topic: Compiler Design
Which one of the following is true for Virtual Machine like JVM?
- A. Hardware dependent
- B. Hardware independent
- C. Bytecode is part of VM
- D. Links object code
Answer: B. Hardware independent
Explanation: The primary purpose of a Virtual Machine like the Java Virtual Machine (JVM) is to abstract the underlying physical hardware and operating system. This allows the compiled bytecode to be platform-agnostic, granting hardware independence.