Exception occurs during _________.
-
translation time
-
compilation time
-
run time
-
none of the above
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.