in Education by
Which part of code gets executed whether exception is caught or not? (a) finally (b) try (c) catch (d) throw This question was addressed to me in a national level competition. I want 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
The correct option is (a) finally The explanation is: Finally block of the code gets executed regardless exception is caught or not. File close, database connection close, etc are usually done in finally.

Related questions

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
0 votes
    Which of these class is related to all the exceptions that cannot be caught? (a) Error (b) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of the below author is not a part of GOF (**** of Four)? (a) Erich Gamma (b) ** ... questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
0 votes
    Which of these clause will be executed even if no exceptions are found? (a) throws (b) finally (c ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which key helps to step out of the caller of currently executed method? (a) F3 (b) F5 (c) F7 ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which attribute is used to specify that the script is executed when the page has finished parsing? (only ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
...