Solved

Which of the Following Statements Creates a Multidimensional Array with 3

Question 2

Multiple Choice

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


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

Correct Answer:

verifed

Verified

Related Questions