Multiple choice technology programming languages

What is a JVM?

  1. Interpreter

  2. Compiler

  3. Byte code file

  4. 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.