What is a JVM?
-
Interpreter
-
Compiler
-
Byte code file
-
Class file
Reveal answer
Fill a bubble to check yourself
A
Correct answer
AI explanation
In common exam shorthand, the JVM (Java Virtual Machine) is described as an interpreter: it reads compiled Java bytecode (.class files) and executes it instruction-by-instruction on the host machine (in practice modern JVMs also JIT-compile hot code, but for basic classification quizzes it's categorized as an interpreter, distinct from the Java compiler which translates source to bytecode). 'Compiler' is wrong because that's javac's job, not the JVM's; 'Byte code file' and 'Class file' describe the compiled output the JVM consumes, not the JVM itself.