Solved

If a Negative Value Is Used for an Array Index

Question 41

Multiple Choice

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


A) a NumberFormatException is thrown
B) the program terminates automatically without throwing an exception
C) the last index of the array is automatically accessed instead
D) an ArrayIndexOutOfBoundsException is thrown

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions