Pergunta de entrevista da empresa codecentric (Serbia)

When you are writing equals() method, which other method or methods you need to override(Java)?

Resposta da entrevista

Sigiloso

11 de set. de 2016

"hashcode" is the right answer. Since equals and hashCode have are directly dependent on each other, so overriding one and not other will break their functionality.