giovedì 28 marzo 2013

Q63


Given the code fragment:
             int[][] array2D = { { 0, 1, 2 }, { 3, 4, 5, 6 } };
             System.out.print(array2D[0].length + "");
             System.out.print(array2D[1].getClass().isArray() + "");
             System.out.println(array2D[0][1]);
What is the result?
A.
3false1
B.
2true3
C.
2false3
D.
3true1
E.
3false3
F.
2true1
G.
2false1
Risposta D, 3true1

Nessun commento:

Posta un commento