ExamLab for sjcp 6.0 wrote:
A question from ExamLab for sjcp 6.0:
Which one is the valid statement?
A int[] it1 = new int[0]{};
B new int[2];
C int[] it2 = new int[][]{{1}}[0];
D int[][] it3 = new int[]{0}[0][0];
E int it5 = new int[2]{}[]
The answer is C.
Doesn't it covert from int[][][] to int[] ?
And about answer D, the explaination says it coverts from int[] to int[][]. Why doesn't it actually covert int[][][] to int[][] ?