title: In Java, why can we use the String class as if it were a primitive?
body: <p>In Java we usually do:</p>
  
  <pre><code>Class myObject = new Class();
  </code></pre>
  
  <p>because the <code>new</code> keyword returns an address. </p>
  
  <p>But why can we do this?:</p>
  
  <pre><code>String myString = "Hello";
  </code></pre>
  
  <p>as if <code>String</code> were a primitive? </p>
  
  <p>I asked this to my teacher and he replied that it is because what is in quotes is equivalent to an address, but he is not sure. Can you confirm? <br></p>
  
  <p>Is "Hello" stored in an instance variable of the class String?</p>