Is there ever a situation where using equals(Boolean)
and ==
would return different results when dealing with Boolean
objects?
Boolean.TRUE == myBoolean;
Boolean.TRUE.equals(myBoolean);
I'm not thinking about primitive types here, just Boolean objects.