Q.

When does the ArrayIndexOutOfBoundsException occur?

A. Compile-time
B. Run-time
C. Not an error
D. Not an exception at all
Answer» B. Run-time
1.2k
0
Do you find this helpful?
14

View all MCQs in

Data Structures (DS)

Discussion

ND

Nayan Dutt
1 month ago

What should a programmer do when they encounter an ArrayIndexOutOfBoundsException during runtime?
1