To run a compiled Java program, the machine must have what loaded and running?
-
Java virtual machine
-
Java compiler
-
Java bytecode
-
A Web browser
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.