1.

Tow diffrences b/w sets and collection

Answer»

Step-by-step explanation:

here's your 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

hope it's helpful for you ☺️



Discussion

No Comment Found

Related InterviewSolutions