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 machine-independent code that runs on any platform with a JVM. It's an intermediate representation between Java source code and machine code, allowing Java's 'write once, run anywhere' capability. Option A is incorrect because bytecode is not machine-specific, and B is wrong because Java source code must be compiled to bytecode first.