Multiple choice

Which of the following statements is/are correct? A. Multiple catch clauses with one try block. B. Catch block only catches the exception.

  1. Only A

  2. Only B

  3. Both A and B

  4. Neither A nor B

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

There will be a multiple catch clause with one try block. The catch block not only catches the exception but it also processes the exception.