This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I met two problem with collection when doing Mock Exam. Please help! 1.You need to store elements in a collection that guarantees that no duplicates are stored and all elements can be accessed in natural order. Which interface provide that capability? A.Java.util.Map B.Java.util.Set C.Java.util.List D.Java.util.SortedSet E.Java.util.SortedMap F.Java.util.Collection I wonder the answer is D or E or both. 2.Which statement is true for the class java.util.Hashset? A. THe elements in the collection are ordered. B. The collection is guaranteed to be immutaible. 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 guranteed to be synchronized. Is the answer should be C and D?