this question is from http://www.jchq.net/tutorial/10_01Tut.htm, question 3) Which of the following are true? 1) The Set interface is designed to ensure that implementing classes have unique members 2) Classes that implement the List interface may not contain duplicate elements 3) The Set interface is designed for storing records returned from a database query 4) The Map Interface is not part of the Collection Framework the correct answer gave is 1),but I think the answer 4) is right,too. anybody can help me?
There is "collection framework", Collection interface, collections, and Collections Collections framework: collections in the API in general, including Collection, Map interfaces and their sub-interfaces, implementing classes. Collection interface: a name of an interface collections: same like collections framework Collections: is a helping class implementing the Collection interface. HTH
The Map interface does not extend the Collection interface. However, you can get a Collection view of a Map using the following methods: values, entrySet, and keySet. Even though Map does not extend Collection, it is still part of the Collections Framework.
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>