Please help me how does the string.equals in java work with null value? Is there some problem with exceptions? Three cases:
boolean result1,result2, result3;
You will get a NullPointerException in case 1 and case 3.
You cannot call any methods (like equals()) on a null object.
equals()