Question d’entretien chez Tango

How does HashMap work? What will happen if we override hashCode method and make it return a constant value? What happens when we add 100 objects with the same hashCode into HashMap?