Please enable JavaScript to use CodeHS

AP CSA: VAR-2.A.7

CodeHS Lessons

The valid index values for an array are 0 through one less than the number of elements in the array, inclusive. Using an index value outside of this range will result in an ArrayIndexOutOfBoundsException being thrown.