Is there ever a situation where using equals(Boolean) and == would return different results when dealing with Boolean objects?
equals(Boolean)
==
Boolean
<
How about:
System.out.println(new Boolean(true) == new Boolean(true)); System.out.println(new Boolean(true) == Boolean.TRUE);
(both print false, for the same reason as any other type of objects).