Multiple choice

Which of the following is the correct sequence of statements for handling an error? A. Throw the exception B. Handle the exception C. Hit the exception D. Catch the exception

  1. ABCD

  2. ABDC

  3. BACD

  4. CADB

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

The correct sequence of statements to handle an error is

  1. Hit the exception
  2. Throw the exception
  3. Catch the exception
  4. Handle the exception