How many object creates with new operator?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/334518/java-strings-string-s-new-stringsilly">Java Strings: &ldquo;String s = new String(&rdquo;silly&ldquo;);&rdquo;</a>  </p>
</blockquote>



<p>If i write</p>

<pre><code>String s= new String("how many object b created by this method ");
</code></pre>

<p>how many reference objects and objects will be created in comparison to doing it this way: </p>

<pre><code>Sting s1="Is this method is good as compare to upper"; 
</code></pre>
