0 votes
in Education by (1.7m points)
Which of these keywords must be used to handle the exception thrown by try block in some rational manner?

(a) try

(b) finally

(c) throw

(d) catch

This question was posed to me by my school teacher while I was bunking the class.

Enquiry is from Exceptional Handling Basics topic in section Exception Handling of Java

Select the correct answer from above options

JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by (1.7m points)
Right answer is (d) catch

Explanation: If an exception occurs within the try block, it is thrown and cached by catch block for processing.

Related questions