Java new Date() in print
<p>just learning Java and I know this may sound stupid but I have to ask. </p>

<pre><code>System.out.print(new Date());
</code></pre>

<p>I know that whatever is in the argument is converted to a string, the end value that is, 
<code>new Date()</code> returns a reference to a Date object. So how is it that it prints this?</p>

<pre><code>Mon Aug 29 13:22:03 BST 2011
</code></pre>

<p>The only thing I can think of is somehow the function parses through all the data members gets their values converts them to a String and prints them.</p>

<p>If not how does it work? </p>

<p>Thanks</p>
