Examveda

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


This Question Belongs to Java Program >> Miscellaneous In Java

Join The Discussion

Related Questions on Miscellaneous in Java