This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes diffrence between collection n collections Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Java in General
Reply 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: 56150
    
  13

An "s".

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: diffrence between collection n collections
 
Similar Threads
Collections
Collection, Collections and Collections Framework?
Map Question
question from javacross simulation
Collections and collection