Unknown qid
Posted: Wed Aug 19, 2015 10:48 am
Hi,
It was written that it could several possible correct answers for implemetation of hashCode()
Does this implementation correct?
public int hashCode() {
return name + age ;
}
I assume it correct. Am I right?
It was written that it could several possible correct answers for implemetation of hashCode()
Does this implementation correct?
public int hashCode() {
return name + age ;
}
I assume it correct. Am I right?