What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body

Q

What happens if a try-catch-finally statement does not have a catch clause to handle an exception that is thrown within the body of the try statement?

✍: Guest

A

The exception propagates up to the next higher level try-catch statement (if any) or results in the program's termination.

2013-01-18, 1968👍, 0💬