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
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: 800
    
  38

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
hashcode
Should I use "equal" or "==" in this case?
Difference between hashCode() and equal()