Solved

Why Is It a Good Idea to Check That the Current

Question 15

Multiple Choice

Why is it a good idea to check that the current column number is less than arrayName[i].length before attempting to access arrayName[i][j]?


A) Rows might have a different number of columns.
B) Accessing columns that do not exist will result in ArrayIndexOutofBoundsException at run time.
C) The column number must be within the range of 0 to arrayName[i].length - 1.
D) All of these are correct.

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