Question

What happens if an exception is thrown but not caught?

A The program terminates immediately.
B The exception is ignored, and the program continues execution.
C The program goes into an infinite loop.
D The exception is automatically caught and handled by the runtime environment.
Practice Next

Relevant for Exams:

Hey! Ask a query