Multiple choice

To run a compiled Java program, the machine must have what loaded and running?

  1. Java virtual machine

  2. Java compiler

  3. Java bytecode

  4. A Web browser

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

To run a compiled Java program, the machine must have the Java Virtual Machine (JVM) loaded and running. The JVM interprets Java bytecode and executes it on the host machine. The Java compiler is only needed during development to compile source code. Java bytecode is what the JVM executes, not what runs the program. A web browser is not required unless it's an applet.