I was thinking and this question came to my mind what is the relationship between hashCode()
and equals()
? Also, what is the significance of these methods? And, what are the requirements for implementing them?
Asked
Active
Viewed 43 times
1

Pointy
- 405,095
- 59
- 585
- 614

PowerofMerlin
- 150
- 4
-
6All of those questions can be answered by reading their corresponding Javadoc. – Sotirios Delimanolis Feb 28 '14 at 00:14
-
@JigarJoshi I think that is a totally different question compared to mine. If you really look at it. – PowerofMerlin Feb 28 '14 at 00:15
-
1That question's answers answer everything you just asked. – Sotirios Delimanolis Feb 28 '14 at 00:16
-
1if you check the answer, it will answer your question, question title could be differnet – jmj Feb 28 '14 at 00:17
-
1Sorry I did not see the answer, Thanks I guess for directing me to the answer that I was looking for. – PowerofMerlin Feb 28 '14 at 00:18