• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Reg.Collection

 
Ranch Hand
Posts: 327
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 267
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
Ranch Hand
Posts: 317
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic