There is a possibility that this could be a duplicate question. I initialize the String variable to null. I can or cannot update it with a value. Now I want to check if this variable is not equal to zero and what I'm trying to get. The exception is the null exception. I cannot afford to throw an nullpointer exception, as it is expensive. Is there any workaround that is .TIA effective
Harish
source
share