File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
hashCode() and equals()
Joined: Mar 07, 2004
Dec 13, 2004 00:26:00
Can anyOne Explain me abt the relationship b/n these two methods?
Joined: Mar 11, 2002
Dec 13, 2004 00:36:00
Look at the following article
The SCJP Tip Line - hashCodes Uncovered
Joined: Aug 31, 2004
Dec 13, 2004 11:07:00
See the general "hashCode contract" described under the hashCode() method in the API for Object...
[ 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."
Joined: Feb 02, 2002
Dec 13, 2004 23:20:00
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
subject: hashCode() and equals()
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013