A

Admin • 828.03K Points
Coach

Q. Which exception is thrown when accessing an array with invalid index?

  • (A) ArrayIndexOutOfBoundsException
  • (B) NullPointerException
  • (C) IOException
  • (D) IndexMismatchException

Explanation by: Admin
Accessing an array with an invalid index throws ArrayIndexOutOfBoundsException.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.