wood burning stoves*
The moose likes Java in General and the fly likes hashcode() in java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "hashcode() in java" Watch "hashcode() in java" New topic
Author

hashcode() in java

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
What is the use of the hashcode() in java?
with respect to entity beans, how is the hashcode() used for?


SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074
    
  16

Read the Javadoc documentation of the method hashCode() in class Object. It says:

"This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable."

Here are some articles with more information (found in 5 seconds with Google):
Java theory and practice: Hashing it out
HashCodes in a Nutshell


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Not an advanced question. Moving...


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hashcode() in java
 
Similar Threads
Detecting Duplicates in Hashmap
Need Help in hashcodes
hash code equal method
need help with the space-time continium
Correct implementation of hashcode()