This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Collections" Watch "Collections" New topic
Author

Collections

satishind Reddy
Ranch Hand

Joined: Oct 17, 2000
Posts: 33
I found this question from mock exame.
Which of the following can contain duplicate elements.
a)collection
b)List
c)Set
d)Map
Given answers is 'a' and 'b'.
How is 'a' is a answer.
Thanks
Satish
sean cee
Ranch Hand

Joined: Oct 24, 2000
Posts: 115
Hi Satishind,
API says "Some collections allow duplicate elements and others do not "
So I guess, you cannot really say a) is true.
I have come across this kind of answer before... and I wondered myself....
correct me if I am wrong here.. thanks


Sean <br />SCJP2, SCJP2p1.4, SCWCD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Collections
 
Similar Threads
Interesting classpath question
Static Initializers.
question
Puzzling question from Mughal and Rasmussen
A Poll, a Poll, a very simple Poll!