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:A
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