title: How does the String class work internally in Java?
body: <p>How does the String class work? I have gone through many posts and I have not found an answer.</p>
  
  <pre><code>String str="ABC";
  </code></pre>
  
  <p>Does the above statement call the constructor? </p>
  
  <pre><code>public String(char[] paramArrayOfChar)
  </code></pre>
  
  <p>if yes ,how does it call it? We are using the assignment operator. How does it call the String class constructor.</p>