Why should I not instantiate a string object with a constructor?
<p>In Java, apparently, <code>String s = "foo"</code> is preferred over <code>String s = new String("foo")</code>.</p>

<p>Why? Isn't a new string object created in both cases? Why would the first case preclude calling a constructor?</p>
