This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "Collections" Watch "Collections" New topic
Author

Collections

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
Bartender

Joined: Mar 07, 2007
Posts: 1280

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

Marco
[ March 26, 2008: Message edited by: Marco Ehrentreich ]
 
 
subject: Collections