• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Collections

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
best scout
Posts: 1294
Scala IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic