This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
in JavaCaps mock test (Title-10): http://www.javacaps.com/scjp_util.html question #2.Which of the following allows duplicates , and introduces positional indexing.? [a] Set [b] Map [c] Iterator [d] List To my surprise, the answer is b?! As I remember, Map doesnot allow duplicates in the collection, right? who can help me to clear this?? Many thanks in advance!
Hi Jenny, You're right. A Map cannot have duplicate keys. Believe the correct answer is 'd' List; which allows duplicates and allows you to specify an object's position within the list. Check the API when in doubt Hope that helps. ------------------ Jane Griscti Sun Certified Programmer for the Java� 2 Platform