mercoledì 27 marzo 2013

Q6

Q6


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 :  3true1
 Riferimenti : getClass() e isArray

Nessun commento:

Posta un commento