Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

diffrence between collection n collections

 
sanjeev mohanty
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the difference between collection and collections?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64844
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An "s".

Seriously, you'll need to give some more context for the question before a meaningful answer is possible.
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean java.util.Collection and java.util.Collections the difference are:

Collection is the root interface of all Java collections (i.e. ArrayList, HashSet, LinkedList, etc).

Collections, on the other hand, is class the provides a very useful set of services to manipulate collections through its static public methods.

See JDK API documentation for more details about it.
[ October 03, 2006: Message edited by: Edwin Dalorzo ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic