Vidyalelo
Java Programming · Q50

Miscellaneous Java

Programming · Java Programming · question 50

Q50

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board