| Author |
hashCode() and equals()
|
Vaithialingam Asai
Greenhorn
Joined: Mar 07, 2004
Posts: 10
|
|
|
Can anyOne Explain me abt the relationship b/n these two methods?
|
 |
Mani Ram
Ranch Hand
Joined: Mar 11, 2002
Posts: 1140
|
|
Look at the following article The SCJP Tip Line - hashCodes Uncovered
|
Mani
Quaerendo Invenietis
|
 |
marc weber
Sheriff
Joined: Aug 31, 2004
Posts: 11343
|
|
See the general "hashCode contract" described under the hashCode() method in the API for Object... http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html [ December 13, 2004: Message edited by: marc weber ]
|
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
|
 |
Sonny Gill
Ranch Hand
Joined: Feb 02, 2002
Posts: 1211
|
|
|
And once you have done all that, try to find the sample chapters from the book Effective Java by Joshua Bloch, one of them covers hashCode and equal in detail.
|
The future is here. It's just not evenly distributed yet. - William Gibson
Consultant @ Xebia. Sonny Gill Tweets
|
 |
 |
|
|
subject: hashCode() and equals()
|
|
|