Multiple choice

Exception occurs during _________.

  1. translation time

  2. compilation time

  3. run time

  4. none of the above

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

Exceptions occur during program execution (runtime) when something unexpected happens - like division by zero, null pointer access, or file not found. Compile-time errors are syntax errors caught by the compiler, while runtime exceptions happen while the program is running.