eBay Interview Question

What is the difference between a set and a map? Can you place a set inside a map?

Interview Answer

Anonymous

Aug 11, 2015

MAP and SET are both interfaces SET is a group of objects with no duplicates MAP is a group of objects (Values) that each have a unique key you can place a set inside a map by assigning a key to every value (which can be the object itself)

4