A Set is a Collection that cannot contain duplicate elements. The Set interface contains only methods inherited from Collection and adds the restriction that duplicate elements are prohibited. Set also adds a stronger contract on the behavior of the equals and hashCode operations, allowing Set instances to be compared meaningfully even if their implementation types differ. Two Set instances are equal if they contain the same elements. | 0 |
By: [email protected] On: Mon Apr 06 17:58:41 IST 2015 0 0 0 | 0 |
Are You Satisfied :0Yes0No |
A Map is an object that maps keys to values. A map cannot contain duplicate keys: Each key can map to at most one value. It models the mathematical function abstraction. The Map interface includes methods for basic operations (such as put, get, remove, containsKey, containsValue, size, and empty), bulk operations (such as putAll and clear), and collection views (such as keySet, entrySet, and values). oracle doc | 0 |
By: [email protected] On: Tue Apr 07 17:44:13 IST 2015 0 0 0 | 0 |
Are You Satisfied :0Yes0No |