Collections - ArrayList vs Vector

Table of Contents

ArrayList vs Vector

  1. An ArrayList is not synchronized which makes it much faster.
  2. While a vector is synchronized, which slows it down, it is thread safe and limited to one thread at a time.
  3. Other than Hashtable, Vector is the only other class that uses both Enumeration and Iterator while ArrayList can only use Iterator for traversing an ArrayList.

Links to this note