Q.

If a negative value is used for an array index, ____.

A. a NumberFormatException is thrown
B. the program terminates immediately
C. the last index of the array is automatically accessed instead
D. an IndexOutOfBoundsException is thrown
Answer» D. an IndexOutOfBoundsException is thrown
3.4k
0
Do you find this helpful?
37

View all MCQs in

Java Programming

Discussion

No comments yet