Saved Bookmarks
| 1. |
Write 2 difference between collection and set |
|
Answer» Step-by-step explanation: 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. |
|