[Core java programming] says if I overrides Object.equals(), then I should override Object.hashCode() at the same time.
This is quite odd to me, if I don't override hashCode() at the same time, is there any possibility that something wrong could happen in logic?
Would you help to give such an example to indicate?
Thanks a lot.