Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Collections

 
balajee annamalai
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic