Solved

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

Question 39

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