Which component of Java platform is responsible for converting bytecode into…
2024
Which component of Java platform is responsible for converting bytecode into machine-specific code?
- A.
Java Runtime Environment (JRE)
- B.
Java Development Kit (JDK)
- C.
Java Compiler
- D.
Java Virtual Machine (JVM)
- E.
Question not attempted
Attempted by 142 students.
Show answer & explanation
Correct answer: D
The Java Virtual Machine (JVM) is responsible for converting Java bytecode into machine-specific code so that it can run on a particular operating system and hardware.
Working Process
Java source code (
.java) is compiled by the Java Compiler (javac) into bytecode (.class).The JVM interprets or converts this bytecode into machine code.
The program then executes on the system.
This feature makes Java platform independent.