UnitedHealth Group interview question

What is the difference between a set, a map, and a list in Java?

Interview Answer

Anonymous

11 Aug 2016

A map has distinct links between a specific key and a value, a list is a structure holding data that assumes ordering with possible duplicates (although it doesnt HAVE to have it), and a set is a structure holding data that doesn't have duplicates and is not assumed to be ordered.

4