Question

What keyword is used in Java to manually bring in the exceptions?

A Finally Correct Answer Incorrect Answer
B Catch Correct Answer Incorrect Answer
C Throw Correct Answer Incorrect Answer
D Show Correct Answer Incorrect Answer
E Push Correct Answer Incorrect Answer

Solution

Throw is used to throw or introduce exceptions, catch is used to catch the exception and handle it so that the program is prevented from failing.

Practice Next

Relevant for Exams:

×
×