NaveenKumar M N

NaveenKumar M N

Java hashCode() and equals()

Mar 5, 20213 min read

I realized the importance of equals() and hashCode() while trying to remove an element from a List. The method hashCode() returns an Integer value of an object which is generated by a hashing algorithm. Collection framework depends on this for variou...