File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Collections Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Collections" Watch "Collections" New topic


balajee annamalai
Ranch Hand

Joined: May 09, 2007
Posts: 31
Im preparing for SCJP1.4 and im really new to collections,can someone explain me in detail about collection or which book can i refer to learn collecttion.
Marco Ehrentreich
best scout

Joined: Mar 07, 2007
Posts: 1294

Hi balajee,

in a few words collections are container classes in which you can put in all kinds of objects. Most collections are optimized in a special way regarding the performance of some operations (insert, delete, search, ...) or the features you get from a particular collection.

Basically there a 3 or 4 base interfaces: Collection, List, Map and Set. For each of these there are maybe more implementations for special purposes ranging from performance to concurrency aspects.

Here's a good online tutorial which explains collections in more detail. Have a look at it, I think it's quite better than I could explain here in a few lines:

Sun Java Trail: Collections

[ March 26, 2008: Message edited by: Marco Ehrentreich ]
I agree. Here's the link:
subject: Collections
It's not a secret anymore!