- a collection that cannot contain duplicate elements
- generally order of the elements does not matter
- models the mathematical set abstraction and is used to represent sets, such as the card comprising a poker hand
- a collection that can contain duplicate elements
- it is an ordered collection, also called as a sequence
- user of a List generally has control over where in (at what index) the List the user want to insert an element and access it using its index
For the better understanding, you can just execute the example program in my previous post "How Do I Convert Set into List".
No comments:
Post a Comment