Question: what is the main difference between set and list in android?
Answer: List is an ordered sequence of elements whereas Set is a distinct list of elements which is unordered. 1) Set does not allow duplicates. List allows duplicate. Based on the implementation of Set, It also maintains the insertion Order .