why to override hashcode and equals methods and What is the Use Unknown on 16:36 1 comments Answers: Share: Facebook Twitter Google+ StumbleUpon Digg Delicious LinkedIn Reddit Technorati
In this regard there is a rule of thumb that if you are going to override the one of the methods( ie equals() and hashCode() ) , you have to override the both otherwise it is a violation of contract made for equals() and hashCode().
ReplyDelete