Question 139

In Java, the finally block:

  1. ANever executes
  2. BExecutes whether or not an exception occurs
  3. CExecutes only if an exception occurs
  4. DExecutes before try
Show answerHide answer

Correct answer: (B) Executes whether or not an exception occurs

Explanation

Except when System.exit() is called.

From DSSSB TGT Computer Science Full Mock Test 5

This is question 139 of DSSSB TGT Computer Science Full Mock Test 5. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.