aspose file tools*
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
Author

diffrence between collection n collections

sanjeev mohanty
Greenhorn

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

Joined: Jan 10, 2002
Posts: 61437
    
  67

An "s".

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


[Asking smart questions] [Bear's FrontMan] [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: http://aspose.com/file-tools
 
subject: diffrence between collection n collections