Which of these is a checked exception?

  1. NullPointerException
  2. IOException
  3. ArithmeticException
  4. ArrayIndexOutOfBoundsException
Correct answer IOException

Explanation

IOException is a checked exception and must be declared or handled.

Update: Admin added a tag on this question

Topics

By Admin · · 31 views