Hi, SAMPLE QUESTION 8: Which two statements are true for the class java.util.TreeSet? (Choose two.) A.The elements in the collection are ordered. B.The collection is guaranteed to be immutable. C.The elements in the collection are guaranteed to be unique. D.The elements in the collection are accessed using a unique key. E.The elements in the collection are guaranteed to be synchronized Answer: A,C Mukti
SAMPLE QUESTION 8: Which two statements are true for the class java.util.TreeSet? (Choose two.) A. The elements in the collection are ordered. B. The collection is guaranteed to be immutable. C. The elements in the collection are guaranteed to be unique. D. The elements in the collection are accessed using a unique key. E. The elements in the collection are guaranteed to be synchronized Answer: A,C Mukti HI! According to me the correct answer is only A.
TreeSet implements SortedSet (which extends from Set). Now you should know why C is correct. HTH, Paul. ------------------ Get Certified, Guaranteed! (Now Revised for the new Pattern) www.enthuware.com/jqplus