General Motors (GM) interview question

How does a set ensure no duplicate objects?

Interview Answer

Anonymous

3 Mar 2023

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