wood burning stoves 2.0*
The moose likes Java in General and the fly likes Best-practices for java collection classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Best-practices for java collection classes" Watch "Best-practices for java collection classes" New topic
Author

Best-practices for java collection classes

Ranadhir Nag
Ranch Hand

Joined: Mar 09, 2006
Posts: 138
Can anyone provide link to any write-up/guide/article which discusses the best-practices in using java collection classes.Basically,the finer points of when/why to use array,vector,set,list etc.
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
The Sun Tutorial is often a good place to start. Google for "Sun something tutorial" almost always hits a winner.

I made a crib sheet to help remember which ones have various strengths.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Best-practices for java collection classes
 
Similar Threads
How to print out contents of a File
Help needed on the following example
BJO - Concepts to Best Code
Minimizing Garbage Collection
CMP and BMP