News

When overriding equals(), it’s common practice to also override the hashCode() method. See Comparing Java objects with equals () and hashcode () for more about these methods.
Obi Ezechukwu ‘s blog High-Octane Java recently featured the post Compact Equals, which compares an implementation of a Java class’s overridden equals method in traditional form versus one ...