Results 1 to 3 of 3
  1. #1
    DavidG24 is offline Member
    Join Date
    Apr 2009
    Rep Power

    Default Collection Types

    Hey guys,

    Before I started coding in Java, C# and C++; I was only really focused on procedural coding and in particular that of Mathematical algorithms, now that I have entered the world of OOP, I have been obsessing over learning as much as possible about all the different collection types, I read many texts, forums etc etc; however most of which seem to have a pre-assumption of knowledge in the field, So my question is - does anyone know any good references that explain explicitly all the Collection types in Java? and most importantly the efficiency of each, when to use what etc?



  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power


    You can find the all basis about collections in Java on the Java doc. Did you read that?

    When to use what.... I don't think we can find a direct answer for this. Because we need to take different approach in different implementations we workout in our projects. If you know what each collection do and how it behave, selecting the best is not a big task.

  3. #3
    OrangeDog's Avatar
    OrangeDog is offline Senior Member
    Join Date
    Jan 2009
    Cambridge, UK
    Rep Power


    A good book is Introduction to Algorithms ISBN 0-262-53196-8
    It covers all the data structures in the Collections framework, and then some.
    Don't forget to mark threads as [SOLVED] and give reps to helpful posts.
    How To Ask Questions The Smart Way

Similar Threads

  1. WHy does it say imcompatable types?
    By PeterFeng in forum New To Java
    Replies: 3
    Last Post: 01-14-2009, 06:54 PM
  2. Collection - java
    By Moonlightkid in forum Advanced Java
    Replies: 3
    Last Post: 09-02-2008, 06:04 AM
  3. How to use Collection in Spring
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 03-29-2008, 01:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts