When does the ArrayIndexOutOfBoundsException occur?
A. Compile-time
B. Run-time
C. Not an error
D. Not an exception at all
Answer:B
When does the ArrayIndexOutOfBoundsException occur?
A. Compile-time B. Run-time C. Not an error D. Not an exception at all
Explanation: The compilation is error-free and the ArrayIndexOutOfBoundsException is a run-time exception.