write any two differences between collection and set
Answers
Answered by
1
Answer:
You know It
Step-by-step explanation:
You must search on Google
Answered by
3
Answer:
Set guarantees that the collection will contain unique elements (no duplicates). A Collection does not guarantee this. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited. ... Two Set instances are equal if they contain the same elements.
Step-by-step explanation:
Similar questions