wood burning stoves
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes hashCode() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "hashCode()" Watch "hashCode()" New topic


sanjana narayanan
Ranch Hand

Joined: Nov 25, 2003
Posts: 142
Can anyone explain the following statement on hashCode with an eg?
"Ideally, a hash funtion should distribute any reasonable collection of unequal instances uniformly across all possible hash values."
Gian Franco
Ranch Hand

Joined: Dec 16, 2003
Posts: 977
Hi Sanjana,
I think it's best to check the following article
it helped me understanding the necessary details.
Article on Equals and Hash Code
Gian Franco

"Eppur si muove!"
I agree. Here's the link: http://aspose.com/file-tools
subject: hashCode()
It's not a secret anymore!