Friday 16 December 2011

27.Which of the following statements is correct about the array declaration given below?

int[][][] intMyArr = new int[2][][];
A.intMyArr refers to a 2-D jagged array containing 2 rows.
B.intMyArr refers to a 2-D jagged array containing 3 rows.
C.intMyArr refers to a 3-D jagged array containing 2 2-D jagged arrays.
D.intMyArr refers to a 3-D jagged array containing three 2-D jagged arrays.
E.intMyArr refers to a 3-D jagged array containing 2 2-D rectangular arrays.
Answer: Option C