Multiple choice

In which of the following siituations does finally block execute?

  1. Return statement in catch block.

  2. System.exit() present in catch block.

  3. Exception occurred in finally block.

  4. The death of thread occurs before completion of execution.

  5. Break; statement in catch block.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Once execution enters the try block, the code in that finally block will definitely be executed.