• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deepToString

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also have same doubt please help me.
 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Check this post Link and this post Link
 
reply
    Bookmark Topic Watch Topic
  • New Topic