Sail E0 Webinar
Question

Which of these exceptions will occur if we try to access the index of an array 

beyond its length?


Options:
A .  ArithmeticException
B .  ArrayException
C .  ArrayIndexException
D .  ArrayIndexOutOfBoundsException
Answer: Option D

ArrayIndexOutOfBoundsException is a built in exception that is caused when we try

 to access an index location which is beyond the length of an array.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers