Domanda di colloquio di Tapad

Difference between set and list

Risposta di colloquio

Anonimo

19 apr 2018

A list is ordered; items are in order of insertion buts sets are not. Lists usually allow duplicates but set only have unique elements. However, some implementations of set allowed data duplicates like LinkedHashSet in Java.