Home » JAVA Programming » Exceptions » Question
  1. Which of these exceptions will occur if we try to access the index of an array beyond its length?
    1. ArrayIndexException
    2. ArithmeticException
    3. ArrayIndexOutOfBoundsException
    4. ArrayException
    5. 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.



Your comments will be displayed only after manual approval.