O'Reilly logo

Oracle Certified Associate, Java SE 7 Programmer Study Guide by Richard M. Reese

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Collections

The Collections Framework was introduced in Java 2 as a set of interfaces and classes that are superior to many of the interfaces and classes found in the earlier java.util package such as Vector, Stack, and HashTable. These interfaces and classes should always be used instead of the older ones whenever possible. Many of the Collection Framework interfaces and classes are summarized in the following table:

Interface

Class

Set

HashSet

TreeSet

List

ArrayList

LinkedList

Map

HashMap

TreeMap

The Collection Framework is covered in more detail at http://java.sun.com/developer/onlineTraining/collections/Collection.html. Here, we will address the ArrayList class as it is a certification topic. It is recommended that the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required