I've seen some of this answered for PHP
, SQL
and C++
, but can't find by java. There is some convention or best practice with that?
I'm asking about null
not equals
vs ==
if (myString != null && myString == null)
or
if (!myString.equals(null) && myString.equals(null))