Question d’entretien chez UnitedHealth Group

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

Réponse à la question d'entretien

Utilisateur anonyme

11 août 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