Solved

There Are Several Ways to Do a Compile-Time Initialization of Arrays

Question 23

Multiple Choice

There are several ways to do a compile-time initialization of arrays. All of the following are valid ways EXCEPT ____.


A) int [ ] anArray = {100, 100, 100};
B) int [ ] anArray = new int [ ] {100, 100, 100};
C) int [ ] anArray = new int [3 ] {100, 100, 100};
D) int [ ] anArray = new int [10 ] {100, 100, 100};

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