File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Programmer Certification (SCJP/OCPJP)
Question on Collection
Joined: Jul 23, 2004
Sep 29, 2004 02:53:00
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.
Joined: Sep 18, 2004
Sep 29, 2004 03:02:00
( 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
Mughal's Mock Exam-Collections (java.util.packages)
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015