Multiple choice

Which of the following blocks in Java is to deal with certain statements irrespective of whether an exception is raised or not?

  1. Try block

  2. Catch block

  3. Finally block

  4. None of these

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

The finally block in Java is to deal with certain statements irrespective of whether an exception is raised or not.