in Education by
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
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

0 votes
0 votes
    Which of these keywords is used to generate an exception explicitly? (a) try (b) finally (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these keywords is not a part of exception handling? (a) try (b) finally (c) thrown (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these keywords must be used to monitor for exceptions? (a) try (b) finally (c) throw (d ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these keywords are used to implement synchronization? (a) synchronize (b) syn (c) synch (d ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these keywords is used to define packages in Java? (a) pkg (b) Pkg (c) package (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these keywords is used to define interfaces in Java? (a) interface (b) Interface (c) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these keywords is used to upper bound a wildcard? (a) stop (b) bound (c) extends (d) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of the following handles the exception when a catch is not used? (a) finally (b) throw ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
...