Multiple choice

What is bytecode?

  1. Machine-specific code

  2. Java code

  3. Machine-independent code

  4. None of the above is correct

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Java bytecode is an intermediate, machine-independent code that runs on the Java Virtual Machine (JVM). This 'write once, run anywhere' design allows Java programs to run on any platform with a JVM without recompilation. The JVM interprets or compiles bytecode into machine-specific instructions.