Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

equals() and hashcode()

 
maganti suryanarayana
Ranch Hand
Posts: 53
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aniket S. Kulkarni
Ranch Hand
Posts: 87
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try below links:

equals() hashCode()

equals() hashCode()

equals() hashCode()

 
maganti suryanarayana
Ranch Hand
Posts: 53
Java MyEclipse IDE Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANKS ANIKET
 
Aniket S. Kulkarni
Ranch Hand
Posts: 87
Android Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's my pleasure.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic