Math, asked by venketreddy001112, 10 months ago

write any two differences between collection and set​

Answers

Answered by Anonymous
24

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

Answered by Anonymous
16

Answer:

 {\huge {\overbrace {\underbrace {\purple { 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.

 {\huge {\overbrace {\underbrace {\purple { thanks}}}}}

Similar questions