title: Is a String literal stored on the stack? Is a new String stored on the stack?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/3297867/difference-between-string-object-and-string-literal">difference between string object and string literal</a>  </p>
  </blockquote>
  
  
  
  <p>Let's say I have two statements. </p>
  
  <pre><code>String one = "abc";
  String two = new String("abc");
  </code></pre>
  
  <p>Which one is a stack memory and which is stored in heap? </p>
  
  <p>What is the difference between these both?</p>
  
  <p>How many objects are created and how is the reference in memory?</p>
  
  <p>What is the best practice?</p>