ArrayIndexOutOfBoundsException Conditions
All of the following statements about an ArrayIndexOutOfBoundsException are true EXCEPT:
A
ArrayIndexOutOfBoundsException occurs only when accessing an array element with a negative index.
B
Both negative indices and indices greater than or equal to the array’s length can cause an ArrayIndexOutOfBoundsException.
C
Accessing an array index that is equal to the array length will throw an ArrayIndexOutOfBoundsException.
D
The exception indicates that the code is trying to access an index that is outside of the array’s valid range.
Question Leaderboard
Not enough data yet to show leaderboard.
