Object comparison - handling the null case Get link Facebook X Pinterest Email Other Apps January 07, 2009 Short-circuitedreturn (s1 == s2) || ( (s1 == null && s2 != null) || !s1.equals(s2) ) Get link Facebook X Pinterest Email Other Apps Comments
Comments