I have doubt while taking a null
or empty char
check in Java. Is both have to be checked in any way.
For example in database the variable length for Char
is 1 . It will allow null
as well. So if you have empty char does it mean null
? or we have to check as
if(someObject.getSomeCharValue()=='' && someObject.getSomeCharValue()==null) {
//true
}
else{
//dont compile
}