The contract for equals(object) method specifies 4 properties to follow: Reflexive, Symmetric, Transitive and Consistent. While I understand the danger of not f
equals(object)
Integer a = new Integer(1); Integer b = new Integer(1);
a == 1 is true, b == 1 is true but, a == b is not true.
a == 1
b == 1
a == b