Some confusion about String pool
<p>java docs says:</p>

<blockquote>
  <p>A pool of strings, initially empty, is maintained privately by the
  class String.</p>
</blockquote>

<p>1) Is it a pool of  <code>string literals</code>  or  <code>references</code>  to these string literals? on net some articles refer it as pool of strings literals while other refer it as pool of references so i got confused.</p>

<p>2) Is string pool created per class basis or per JVM basis?</p>

<p>3)Is there any reference where i can find details of string pool, its implementation etc.?</p>
