Solved

Which of the Following Statements Creates a Multidimensional Array with 3

Question 46

Multiple Choice

Which of the following statements creates a multidimensional array with 3 rows,where the first row contains 1 item,the second row contains 4 items and the final row contains 2 items


A) int[][] items = {new int {1, null, null, null},
New int {2, 3, 4, 5},
New int {6, 7, null, null}};
B) int[][] items = {new int {1},
New int {2, 3, 4, 5},
New int {6, 7}};
C) int[][] items = {new int {1},
New int {2, 3, 4, 5},
New int {6, 7},
New int {}) ;
D) int[][] items = {new int {1},
New int {4},
New int {2}};

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions