7. When does the Array Index Out Of Bounds Exception occur?

a) Compile-time
b) Run-time
c) Not an error
d) Not an exception at all

Answer: b
Explanation: ArrayIndexOutOfBoundsException is a run-time exception and the compilation is error-free.

Leave a Reply

Your email address will not be published.