What happens if an exception is not caught?

Q

What happens if an exception is not caught?

✍: Guest

A

An uncaught exception results in the uncaughtException() method of the thread's ThreadGroup being invoked, which eventually results in the termination of the program in which it is thrown.

2013-01-15, 1996👍, 0💬