AP Computer Science Aeasymcq1 pt
Accessing an index equal to the array length causes
A.an ArrayIndexOutOfBoundsException
B.a compile error
C.null to be returned
D.0 to be returned
Valid indexes are 0 to length minus one.
Aan ArrayIndexOutOfBoundsException
Practice more AP Computer Science A questions with full explanations
Practice Unit 6: Array Questions →