Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question on Collection

 
sashi balu
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic