Home > Java Programming > Objects and Collections > Questions and Answers
Exercise:
Q: |
What two statements are true about properly overridden hashCode() andequals() methods? 1. hashCode() doesn't have to be overridden if equals() is. 2. equals() doesn't have to be overridden if hashCode() is. 3. hashCode() can always return the same value, regardless of the object that invoked it. 4. equals() can be true even if it's comparing different objects. | ||||||||||
|
Comment on this Question | |
Name: | |
|