aspose file tools*
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
Author

Question on Collection

sashi balu
Greenhorn

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.

Thanks
Sashi
tao wu
Greenhorn

Joined: Sep 18, 2004
Posts: 8
Sashi
( 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Question on Collection
 
Similar Threads
Mughal's Mock Exam-Collections (java.util.packages)
Generics
Set question
Reg.Collection
Collection