File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes equals() and hashcode() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


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

equals() and hashcode()

maganti suryanarayana
Ranch Hand

Joined: Mar 30, 2010
Posts: 53

I have read equals and hashcode from kathy sierra and i understood that hashcode and equals for searching purpose. hashcode gives the correct bucket to searcha and equals to find out the correct object in the bucket.
I need more number of examples to understand and the topic is still blurred to me.

Thanks & Regards
surya


surya
Aniket S. Kulkarni
Ranch Hand

Joined: Jun 15, 2011
Posts: 87

Try below links:

equals() hashCode()

equals() hashCode()

equals() hashCode()



Aniket Kulkarni
Oracle Certified Professional, Java SE 6 Programmer.
maganti suryanarayana
Ranch Hand

Joined: Mar 30, 2010
Posts: 53

THANKS ANIKET
Aniket S. Kulkarni
Ranch Hand

Joined: Jun 15, 2011
Posts: 87

It's my pleasure.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: equals() and hashcode()