Core Collection Interfaces
The core interfaces that define common functionality and allow collections to be manipulated independent of their implementation.
The 6 core Interfaces used in the Collection framework are:
- Collection
- Set
- List
- Iterator (Not a part of the Collections Framework)
- SortedSet
- Map
- SortedMap
Note: Collection and Map are the two top-level interfaces.
Collection Interface
Concrete Classes
The concrete classes that are specific implementations of the core interfaces, providing data structures that a Java program can use.

Collection Overview
Java ArrayList
* Resizable-array implementation of the List interface. A java ArrayList is used to store an "ordered" group of elements where duplicates are allowed.
* Implements all optional list operations, and permits all elements, including null.
* This class is similar to Vector, except that it is unsynchronized.
* The size, isEmpty, get, set, iterator, and listIterator operations run in constant time. ArrayList's give great performance on get() and set() methods, but do not perform well on
add() and remove() methods when compared to a LinkedList.
* An ArrayList capacity is the size of the array used to store the elements in the list. As elements are added to an ArrayList, its capacity grows automatically. It is an Array based
implementation where elements of the List can be accessed directly through get() method.
To prevent unsynchronized access to the list: List list = Collections.synchronizedList(new ArrayList(...));
Java Linked List
* A LinkedList is used to store an "ordered" group of elements where duplicates are allowed.
* A LinkedList is based on a double linked list where elements of the List are typically accessed through add() and remove() methods.
Java Vector
public class Vector extends AbstractList implements List, RandomAccess, Cloneable, Serializable
* The Vector class implements a growable array of objects where the size of the vector can grow or shrink as needed dynamically.
* Like an array, it contains components that can be accessed using an integer index.
* An application can increase the capacity of a vector before inserting a large number of components; this reduces the amount of incremental reallocation.
Map Interface