0 votes
in Education by (1.7m points)
Which of the following keywords is used for throwing exception manually?

(a) finally

(b) try

(c) throw

(d) catch

I had been asked this question by my school principal while I was bunking the class.

I'd like to ask this question from Exception Handling topic in chapter 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 choice is (c) throw

Easy explanation: “throw’ keyword is used for throwing exception manually in java program. User defined exceptions can be thrown too.

Related questions

...