AP Computer Science Aeasymcq1 pt

The bounds check that throws ArrayIndexOutOfBoundsException happens

A.at runtime
B.at compile time
C.never
D.only for String arrays

Explanation

Core Concept

The JVM checks indexes while running.

Correct Answer

Aat runtime

More Unit 6: Array practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 6: Array Questions →