Nullity
View Answers
September 20, 2008 at 4:57 PM
Try to assign a value.
can u expalin how u get null value.
Thanks
September 20, 2008 at 5:08 PM
Hi friend,
To check a value null or not
class Checkval
{
public static void main(String[] args)
{
String str = null;
if(str==null)
{
System.out.println("NUll Value");
}
else
{
System.out.println("Not NUll Value");
}
}
}
Thanks
Related Tutorials/Questions & Answers:
Advertisements