This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "hashcode()" Watch "hashcode()" New topic
Author

hashcode()

krishi Bhas
Greenhorn

Joined: Dec 18, 2006
Posts: 8
Hi guys,

Can any of you briefly explain me abt hashcode() and equals() methods.

Thanks
Krishi
marc weber
Sheriff

Joined: Aug 31, 2004
Posts: 11343

I'm not sure this can be explained "briefly" unless you give us an idea of what you already understand, and what your specific questions are.

Try the section Understanding hashcode() from Eckel's Thinking in Java.

Let us know if this helps.


"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: hashcode()
 
Similar Threads
Practice Question
need help with the space-time continium
hash code
basicjava
what is hashcode and equals contract?