-
Which of these exceptions will occur if we try to access the index of an array beyond its length?
-
- ArrayIndexException
- ArithmeticException
- ArrayIndexOutOfBoundsException
- ArrayException
- None of these
Correct Option: C
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.