Which Java Collection Should I Use?

Java collections are one of the most commonly used data-structures by all Java professionals. But are you using the right collection class that would best suits your need.

Most programmers usually use Vectors, ArrayList, HashMap or the Hashtable. There are many other Java collection classes available with the JDK that you can use instead of re-inventing logic to suite your needs.

In my tutorial on selecting Java collections, I explain the different types of classes and when each Collection class could be used. I won't be looking into the implementation details of any collection, for that please refer the latest Java Collection API docs.

View the resource