Boolean Object and boolean variable issue in JAVA
<p>I declare a Boolean variable . For example <code>Boolean dataVal=null;</code>
Now if i execute the following code segment :</p>

<pre><code>if(dataVal)
    System.out.println("\n\NULL value in dataVal: "+dataVal);
else
    System.out.println("\n\nvalue in dataVal: "+dataVal);
</code></pre>

<p>I get NULLPointerException. Well, i know its obvious, but i need to know the reason behind this.</p>
