JAVA compiler translates source code into __________.
2021
JAVA compiler translates source code into __________.
- A.
symbolic code
- B.
assembly code
- C.
byte code
- D.
high language code
Attempted by 298 students.
Show answer & explanation
Correct answer: C
Unlike many other languages that compile directly into machine-specific code, Java uses a two-step process to ensure portability across different operating systems.
Source Code to Bytecode: The Java compiler (
javac) takes your human-readable.javafiles and translates them into Bytecode (stored in.classfiles).Platform Independence: This bytecode is not specific to any particular processor. Instead, it is designed to be executed by the Java Virtual Machine (JVM).
Execution: The JVM then translates the bytecode into the actual machine code of the specific device you are using (Windows, Mac, Linux, etc.).