Domanda di colloquio di Bloomberg

What do you know about hash code? What is the most important thing to do while writing a hash code? Can hash codes for two objects be the same ?

Risposta di colloquio

Anonimo

19 giu 2016

any two objects that are 'equal' must have same hash code. yes, two objects can have same hash code.