This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Regarding HashCode" Watch "Regarding HashCode" New topic

Regarding HashCode

santhosh kumar vk
Ranch Hand

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

Santhosh Kumar V.K
Tim Cooke

Joined: Mar 28, 2008
Posts: 800

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

Tim Driven Development
subject: Regarding HashCode
Similar Threads
Equals and hashcode
hascode and equals
Should I use "equal" or "==" in this case?
Difference between hashCode() and equal()