from
http://www.sun.com/training/certification/assessment/055-Jintro.jsp I had this question:
1. import java.util.*;
2. class DumpArray {
3. public static void main(
String [] args) {
4. int [] a = {7,9,8};
5. int [][] aa = {{1,2,3}, {6,5,4}};
6. int [][][] aaa = {{{1,2}, {3,4}}, {{5,6},{7,8}}};
7.
8. System.out.println(Arrays.deepToString(a));
9. System.out.println(Arrays.deepToString(aa));
10. System.out.println(Arrays.deepToString(aaa));
11. }
12. }
Which invocation (or invocations) of deepToString will compile?
Only line 8
Only lines 8 and 9
Only lines 9 and 10
Lines 8, 9, and 10
ANSWER : Only lines 9 and 10
There is no reference about deepToString() in the Sierra & Bates preparation book. It is include in the objectives?
Thank you