I declare a Boolean variable. For example Boolean dataVal=null; Now if I execute the following code segment:
Boolean dataVal=null;
if(dataVal) System.out.prin
When you try to evaluate Boolean object value jvm internally call booleanValue() on that object as you assign null to that object it will throw NullPointerException