title: Making String private or public in Java
body: <p>Strings in Java are said to be immutable. 
  So if I say</p>
  
  <pre><code>String one = "myString";
  </code></pre>
  
  <p>and </p>
  
  <pre><code>String two = "myString";
  </code></pre>
  
  <p>Internally both the objects will be using the same literal.
  Now what puzzlles me is why should I make my Strings private in different classes, when internally they will be referencing to the same string literal.</p>
  
  <p>Is it just that external elements(like classes or object) will not know what members the class has inside it?</p>