Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

question from javacross simulation

 
Noel Hinders
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
the following question is taken from http://www.javacross.com please tell me correct answer.
Q].Which of the following makes proper distinction between Collection and Collections in the java standard library
a].Collection is a class collections is a Interface
b].Collections is a class collection is a Interface
c].both Collection and Collections are classes
d].both Collection and Collections are Interfaces
Thanks in advance.
 
natarajan meghanathan
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Option b.
Collection is the basic interface and collections class provides some algorithms like sort, shuffle methods for the implementations of the Collection interface.
 
Noel Hinders
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , can anyone explain what is Collection, collections.
Thank you.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic