1

I need a source from where i can read when to use which Collection i.e which Collection is best suitable for this particular purpose with detail explanation.

Somebody please help me in this regard.i appreciate your support.

Steve Kuo
  • 61,876
  • 75
  • 195
  • 257
love with java
  • 123
  • 2
  • 10
  • This has been asked before: http://stackoverflow.com/questions/3940839/list-vs-queue-vs-set-of-collections-in-java – maksimov Apr 25 '12 at 13:41
  • You can read the Java tutorial (google: java tutorial collections) and the relevant javadocs. – assylias Apr 25 '12 at 13:46
  • 1
    @lovewithjava and this is absolutely fine. Just get into a habit of searching for answers before asking questions. This will help you to become better. – maksimov Apr 25 '12 at 13:48

3 Answers3

3

I've always found this decision tree very useful.

Sirs
  • 1,277
  • 17
  • 30
1

Check out this Java Collections tutorial.

eabraham
  • 4,094
  • 1
  • 23
  • 29
0

Book: Java Generics and Collections

Kiril Kirilov
  • 11,167
  • 5
  • 49
  • 74