Multiple choice

Which error prevents Java from running your program?

  1. Runtime error

  2. Logic error

  3. Syntax error

  4. Spelling error

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

A syntax error violates the grammar rules of the Java language, which prevents the compiler from translating the source code into bytecode. Because bytecode is not generated, the program cannot be run at all.