Computer Applications

What happens in Java if you try to access an element that is outside the bounds of the array?

Java Arrays

3 Likes

Answer

Accessing an element that is outside the bounds of the array results in a runtime error in the form of ArrayIndexOutOfBoundsException.

Answered By

1 Like


Related Questions