Solved

If a Negative Value Is Used for an Array Index

Question 38

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents