This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Java in General and the fly likes Regarding HashCode 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 "Regarding HashCode" Watch "Regarding HashCode" New topic
Author

Regarding HashCode

santhosh kumar vk
Ranch Hand

Joined: Aug 25, 2009
Posts: 144
Hi,
Please tell if two object hashcode are equals, The two object should be equal?

Thanks,
Santhosh Kumar V.K
Tim Cooke
Bartender

Joined: Mar 28, 2008
Posts: 860
    
  42

This has been discussed many times. The java Object documentation explains it pretty well.


Tim Driven Development
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Regarding HashCode
 
Similar Threads
Equals and hashcode
hascode and equals
hashcode
Should I use "equal" or "==" in this case?
Difference between hashCode() and equal()