String object instantiation
<pre><code>String s ="hello";
String s= new String ("hello");
String s1= new String("hello");
</code></pre>

<p>how is the string object created internally in above the cases.</p>

<pre><code>String s = null;
String s = new String (null);  // I get a compilation error at this line
</code></pre>

<p>im not getting the object instantiation in above cases. Java doc says it creates a new obj / creates a new obj with original parameter as string.</p>

<p>but im still not clear</p>
