Exception handling code doubt
<p>I am very new to this topic. Please bare with my silly doubts. I have the following code where I get a name from user and if its null sone exception is thrown. But here i m not getting any exception it i enter null. Please help me</p>

<pre><code>import java.io.*;
class dbz
{
    public static void main(String args[])
    {
        String s=null;
        try
        {

           BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
           s=br.readLine();
        }
        catch(IOException e)
        {
           System.out.println(e.getMessage());
        }
        System.out.println(s);
    }
}
</code></pre>
