Multiple Choice
Which of the following statements correctly initializes an array with an initialization list?
A) int[] nums = {2, 4, 8};
B) int[] nums = (2, 4, 8) ;
C) int nums = [2, 4, 8];
D) int nums() = int{2, 4, 8}
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q67: Using just one statement, declare and create
Q68: Which of the following statements correctly declares
Q69: In which of the following statements is
Q70: Match each term with the correct statement
Q71: Match each term with the correct statement
Q72: int[] multsOfTen = {10, 20, 30, 40,
Q73: How can you use the enhanced for
Q74: When any primitive type is passed to
Q76: You use a _ following the closing
Q77: Why would you use spacing when initializing