title: String object creation in java
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1881922/questions-about-javas-string-pool">Questions about Java’s String pool</a>  </p>
  </blockquote>
  
  
  
  <p>I have a doubt in java Strings object creation.</p>
  
  <pre><code>String s1 = "Hello"+"world";
  String s2 = s1+"Java";
  </code></pre>
  
  <p>in this program how many String objects will be created and how ?please explain it.
  Thanks.</p>