Which of the following exceptions is a subclass of RuntimeException?

  1. FileNotFoundException
  2. IOException
  3. ArrayIndexOutOfBoundsException
  4. SQLException
Correct answer ArrayIndexOutOfBoundsException

Explanation

ArrayIndexOutOfBoundsException is a subclass of RuntimeException (unchecked).

Update: Admin added a tag on this question

Topics

By Admin · · 34 views