title: How to print object fields without override?
body: <p>We can print an array easily using <code>System.out.println</code>(though array is also a kind of object in java) but why we can't print an object directly without override <code>toString()</code> method?</p>
  
  <p>For example:</p>
  
  <pre><code>int array[]=new int(2);
  array[0]=10;
  System.out.println(array[0]); //it works
  Object obj=new Object();
  System.out.println(obj); //it shows the classname and some value i don't know
  </code></pre>