Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Equal method and hashcode
if we override equal method and hashcode,which method will run first and why?
1 ответ
+ 1
Has nothing to do with "running". The only rule is that if equals returns true the hashcodes should be equal as well.