java.util.Vector

java.util.Vector is a class that represents a synchronized array that can be resized. It implements the List interface from the Java Collection Framework. Use this class for quickly storing, randomly accessing, and iterating through objects.

Hints

The java.util.Vector class shares the same characteristics with the java.util.ArrayList class, except that its methods are synchronized. Because its methods are synchronize, a Vector object might perform slightly slower than a java.util.ArrayList object, whose methods are not synchronized.

In addition, Vector objects are not suitable for applications that require objects to be removed quickly from an array. For applications that require objects to be removed frequently from an array, a java.util.LinkedList, java.util.TreeSet, or java.util.HashSet object would be a better choice.

Related Topics:

java.util.ArrayList

java.util.LinkedList

java.util.TreeSet

java.util.HashSet