b

Java List Vs Set – Tip

List collections are preferred for storing and retrieving unique/non-unique list of items in an order. It is not preferred for searching in large datasets.

Set collections are preferred for storing and retrieving unique list of items, if order is not important. It is preferred for searching in large datasets but not really preferred for searching in small datasets.

Leave a Reply

Your email address will not be published.