Pergunta de entrevista da empresa eBay

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

Resposta da entrevista

Sigiloso

11 de ago. de 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