There is a possiblity that this may be a dupicate question. I initialize a String variable to null.I may or may not update it with a value.Now I want to check whether this v
I am comparing s==null only
can you show the code snippet that you have written s==null will never throw a NPE