aspose file tools
The moose likes Java in General and the fly likes hashCode() Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "hashCode()" Watch "hashCode()" New topic
Author

hashCode()

mike molin
Greenhorn

Joined: Nov 11, 2010
Posts: 14
Hi
can some explain what hashCode() is for me, how it works when to use it and why, and maybe give me and example. why not use equals instead
/Kiades
Muhammad Khojaye
Ranch Hand

Joined: Apr 12, 2009
Posts: 341
mike molin wrote:Hi
can some explain what hashCode() is for me, how it works when to use it and why, and maybe give me and example. why not use equals instead
/Kiades

What the hashcode contract says about?
Also check out http://java.dzone.com/articles/java-hashing. Let us know, if there is any query.


http://muhammadkhojaye.blogspot.com/
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: hashCode()
 
Similar Threads
WHat is the use of hashcode()
Help on Hashcode
Does this guarantee a unique client?
code generation of an effective hashCode
hashCode() problem