This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths 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 Head First Android 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: 148
Hi,
Please tell if two object hashcode are equals, The two object should be equal?

Thanks,
Santhosh Kumar V.K
Tim Cooke
Sheriff

Joined: Mar 28, 2008
Posts: 2004
    
  96

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
 
It's not a secret anymore!