Frage im Vorstellungsgespräch bei General Motors (GM)

How does a set ensure no duplicate objects?

Antwort im Vorstellungsgespräch

Anonym

3. März 2023

It uses its equals method to compare any new object to be added to other objects in the set.