How many string objects will be created by JVM version 1.6
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1881922/questions-about-javas-string-pool">Questions about Java&#39;s String pool</a>  </p>
</blockquote>



<p>Recently I read a java article and found the following statement "improved the String pooling technology in java 6 onward". One of the example that they have mentioned as follows</p>

<pre><code>String one = "one";
String two = new String("one");
</code></pre>

<p>Number of objects created by above example is = 1</p>

<p>Here I am little confused, even though we are using the <code>new</code> keyword how come it will not create a new object and uses the object created in the string pool. </p>

<p>Please clarify me.</p>
