aspose file tools*
The moose likes Java in General and the fly likes Difference between 'collection' and 'Collection' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Difference between Watch "Difference between New topic
Author

Difference between 'collection' and 'Collection'

Nimmy
Greenhorn

Joined: Apr 12, 2005
Posts: 13
I would like to know the difference between collection and Collection.
I know Collection is an interface provided in the java.util park but I don't have any idea about 'collection'.

Please help
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Without knowing the context its a little hard to say, but I suspect "collection" is probably being used to define a data structure used to store objects without the writer wanting to make a specific reference to the Collection interface (which defines a particular type of collection). So an array could be considered a collection, but not a Collection. Understand?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Nimmy
Greenhorn

Joined: Apr 12, 2005
Posts: 13
Thankyou for the response.
I just wanted to know what is 'collection'.


Regards,
Mariya
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

SECOND REQUEST

"Mariya"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the

JavaRanch Naming Policy.

You can change it

here.

Thanks! and welcome to the JavaRanch!

Mark
[ May 11, 2005: Message edited by: Mark Spritzler ]

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Actually in Java there isn't anything called "collection" with a lower case c.

you will find Collection which you already mentioned, but also Collections, which is a class of static methods to do things like sort, and binarySearch on a List.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Difference between 'collection' and 'Collection'
 
Similar Threads
Garbage collection and Error handling!
Collections and collection
jdk 5 vs jdk 6
diffrence between collection n collections
differences