File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Question on Collection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Question on Collection" Watch "Question on Collection" New topic

Question on Collection

sashi balu

Joined: Jul 23, 2004
Posts: 16
This from PGJC Mock Exam Engine,

Which of these statements concerning the collection interfaces are true?

1.Set extends Collection
2.All methods defined in Set are also defined in Collection
3.List extends Collection
4.All methods defined in List are also defined in Collection
5.Map extends Collection

I know 5 is a wrong ans and 1 and 3 are correct but I am not sure what will be the correct third choice as 2 and 4 both sound wrong to me. Please advise.

tao wu

Joined: Sep 18, 2004
Posts: 8
( 4.All methods defined in List are also defined in Collection ) is wrong .
You can see from API doc
[ September 29, 2004: Message edited by: Jonathan Schwartz ]

Boy From PRC<br />SCJP1.4
I agree. Here's the link:
subject: Question on Collection
It's not a secret anymore!