Solved

Given the Following Array Declaration and Instantiation, What Is True

Question 22

Multiple Choice

Given the following array declaration and instantiation, what is true about array arr? int[] arr = new int[5];


A) It stores 5 elements with legal indices between 1 and 5.
B) It stores 5 elements with legal indices between 0 and 4.
C) It stores 4 elements with legal indices between 1 and 4.
D) It stores 6 elements with legal indices between 0 and 5.
E) It stores 5 elements with legal indices between 0 and 5.

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