what is the purpose of using equals() or hashcode() method in java? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 6

what is the purpose of using equals() or hashcode() method in java?

i really find it difficult to understand equals() and hashcode()

10th Apr 2017, 8:52 AM
maruf sikder
maruf sikder - avatar
1 Answer
+ 1
You can use it to compare complex objects https://code.sololearn.com/cr67aAl7iwf7/#java
10th Apr 2017, 11:08 AM
T0nd3