write any two differs b/w collection and set
Answers
Answered by
1
Step-by-step explanation:
List is a type of ordered collection that maintains the elements in insertion order while Set is a type of unordered collection so elements are not maintained any order. List allows duplicates while Set doesn't allow duplicate elements .
Thank you !
Answered by
0
Answer :
Set is a type of unordered collection so elements are not maintained any order. List allows duplicates while Set doesn't allow duplicate elements .
Similar questions