"Weakness of attitude becomes weakness of character."
- Albert Einstein
Ashok said:
(Mon, Jun 6, 2011 06:05:25 AM)
I think its wrong because as the question is like collection that don't allow duplicate elements not the keys, so it must be option D.
Chandra said:
(Tue, Jun 14, 2011 07:22:10 AM)
Map allow duplicates but I will overide with previous value. So we can, t say duplicate keys not allow.
Dave Hampton said:
(Wed, Dec 7, 2011 05:14:11 PM)
The question is ambiguous. It does not refer to 'unique keys' - it just states 'no duplicates'. You can in fact have duplicate object values in a Map referenced by different keys. The answer to the question as it stands is java.util.Set which translates to answer D as it's not listed.
Saroj Kumar Das said:
(Wed, Mar 14, 2012 09:56:31 PM)
See Map don't contain duplicate keys but it contain duplicate values, it may be uses HashMap. I think the answer is D.