aspose file tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Reg.Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Reply Bookmark "Reg.Collection" Watch "Reg.Collection" New topic
Author

Reg.Collection

Angela Narain
Ranch Hand

Joined: Apr 14, 2001
Posts: 327
Which of the following are true ?
( select any three )
1.Set extends Collection
2. All methods defined in the Set are also defined in Collection
3. List extends Collection
4. All methods defined in the List are also defined in Collection
5. Map extends Collection
I suppose it is 1, 2, and 3
Roopa Bagur
Ranch Hand

Joined: Nov 03, 2000
Posts: 267
Yes I think so..
Originally posted by Angela Narain:
Which of the following are true ?
( select any three )
1.Set extends Collection
2. All methods defined in the Set are also defined in Collection
3. List extends Collection
4. All methods defined in the List are also defined in Collection
5. Map extends Collection
I suppose it is 1, 2, and 3

Guoqiao Sun
Ranch Hand

Joined: Jul 18, 2001
Posts: 317
Hi, Angela, 1 and 3 are of course correct, 5 is definitely wrong. As to 2 and 4, since Set interface does not define any new method, it is also correct. It is not the case with List.
So I agree with you, 1, 2 and 3 are correct.
Regards,

------------------
Guoqiao Sun
Sun Certified Programmer for Java™ 2 Platform
try my mock exam¹² at my homepage.


Guoqiao Sun<br />SCJP2 SCWCD2<br />Creator of <a href="http://www.jiris.com/" target="_blank" rel="nofollow">www.jiris.com</a>, Java resource, mock exam, forum
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reg.Collection
 
Similar Threads
Exam Qs- collection- help!
Mughal's Mock Exam-Collections (java.util.packages)
Question on Collection
Set question
Collection