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.
(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.
(Wed, Sep 5, 2012 11:49:45 AM)
Yes, the correct answer is D because the answer is asking about duplicate elements not the duplicate keys.
(Thu, Apr 11, 2013 06:16:50 AM)
This is simply a confusingly worded question.
If you consider Key/Value pairs as the element then the answer is correct, however if you only care about the Value then the answer is wrong.
I got it wrong, but I think that considering the Key/Value pair as the element is probably more correct.