197k views
3 votes
A catch block may not have the ability to handle certain type of exceptions or may decide that the exception should be handled by the calling block or environment. In such cases the programmer has the ability to _____. rethrow the exception restart the program enter error-handling instructions during runtime remove the exception

User Dulacp
by
5.2k points

1 Answer

3 votes

Answer:

rethrow the exception.

Step-by-step explanation:

If it is unable to tackle the specific exception that catch block is captured then we should use rethrow the exception.

The expression of rethrow allows the subject to thrown again. In Java rethrow exception enables to indicate more particular types of exceptions of declaration of method in throws clause.

User Isaac Sutherland
by
4.8k points