120k views
3 votes
What happens when an exception is thrown, but the try statement does not have a catch clause that is capable of catching it?

User PaulP
by
5.1k points

1 Answer

5 votes

Answer:

A checked exception indicates something beyond your control has gone wrong. ... If an exception does not have a matching catch clause, the current method terminates and throws the exception to the next higher level. If there is no matching catch clause at any higher level, then the program terminates with an error.

User Kenyee
by
4.8k points