Anil Deshpande wrote:Don't you think, it is wrong. When I am not entering anything in the text feild, I expect it to be a null value. not a empty String with length=0.
I will never be sure whether to check for empty string or handle NullPointerException.
Devaka Cooray wrote:Hello Amila, are you talking about about n-tier applications or distributed applications? You question makes good sense if it is about distributed applications.
Vishwanath Murthi wrote:I guess the userName parameter value would be a "" which is not the same as null