In Java, which exception is thrown when an attempt is made to access an array element with an index that is negative or greater than or equal to the array size?
A. OutOfBoundsException
B. ArrayOutOfBoundsError
C. IndexOutOfBoundsException
D. ArrayIndexOutOfBoundsException
Answer: Option D

Join The Discussion