Skip to content

EasyConceptCollections and Streams

How does HashSet guarantee uniqueness?

What a good answer covers

It is backed by a HashMap and uses hashCode and equals of the element to decide whether an equal element is already present.

More on Collections and Streams

Flashcards for this topic