What two statements are true about properly overridden hashCode() and equals() methods hashCode() doesn't have to be overridden if equals() is equals() doesn't have to be overridden if hashCode() is hashCode() can always return the same value, regardless of the object that invoked it equals() can be true even if it's comparing different objects

Comments and Answers (2)

Vivek

Vivek

how did the answer came

Andrew

Andrew

please anyone explain this answer

Avatar

{{SampleComment.userName || "Your Name"}} ~ {{SampleComment.userCity}}

{{SampleComment.commentValue || "Your Answer or Comment goes here...."}}