Beginner Java
Q33 / 100

What exception is thrown when an array index is out of bounds?

Correct! Well done.

Incorrect.

The correct answer is B) ArrayIndexOutOfBoundsException

B

Correct Answer

ArrayIndexOutOfBoundsException

Explanation

ArrayIndexOutOfBoundsException is thrown when code tries to access an array element at a negative index or an index >= array.length.

Progress
33/100