in Education by
A single try block must be followed by which of these? (a) finally (b) catch (c) finally & catch (d) none of the mentioned This question was addressed to me by my college director while I was bunking the class. The doubt is from Finally & Built in Exceptions 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
The correct option is (c) finally & catch To explain I would say: try block can be followed by any of finally or catch block, try block checks for exceptions and work is performed by finally and catch block as per the exception.

Related questions

0 votes
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
    Which is a useful way to try out small and simple Rhino programs and one-liners? (a) Starting an ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    What is the use of try & catch? (a) It allows us to manually handle the exception (b) It allows ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    When will the finally block be called? (a) When there is no exception (b) When the catch does ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
0 votes
    All methods must be implemented of an interface. (a) True (b) False This question was addressed to ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    The script tag must be placed in __________ (a) the head tag (b) the head or body (c) the title ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What must be done in order to implement Lexical Scoping? (a) Get the object (b) Dereference the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    What is a block statement in JavaScript? (a) conditional block (b) block that contains a single statement ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    What is the purpose of the Block tab? (a) To block the response (b) To block the request (c) ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 23, 2021 in Education by JackTerrance
...