File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes diffrence between collection n collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "diffrence between collection n collections" Watch "diffrence between collection n collections" New topic

diffrence between collection n collections

sanjeev mohanty

Joined: Aug 29, 2006
Posts: 3
What is the difference between collection and collections?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63838

An "s".

Seriously, you'll need to give some more context for the question before a meaningful answer is possible.

[Asking smart questions] [About Bear] [Books by Bear]
Edwin Dalorzo
Ranch Hand

Joined: Dec 31, 2004
Posts: 961
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 ]
I agree. Here's the link:
subject: diffrence between collection n collections
It's not a secret anymore!