Is initalization of string in java necessary...?
<pre><code>class TestMe{   
    public static void main (String args[]){
        String s3;  
        System.out.print(s3);
    }
}
</code></pre>

<p>why the compiler is giving a error,refernce object has a default value of null,why it is not the output...??</p>

<p><code>error: variable s3 might not have been initialized</code></p>
