10/27/09

Java Hashing

Java Hashing: "Every Java object has two very important methods i.e. hashCode() and an equals() method. These methods are designed to be overridden according to their specific general contract. This article describes why and how to override the hashCode() method that preserves the contract of HashCode.

Contract For HashCode The contract for hashCode says‘If two objects are equal, then calling hashCode() on..."



(Via Javalobby Front Page.)

No comments: