javautilVector
java.util.Vector is a legacy resizable array class in the Java platform. It implements the List interface and extends AbstractList, while also implementing RandomAccess, Cloneable, and Serializable. It stores its elements in an internal array and provides indexed access, insertion, and removal.
Vector is synchronized: most of its public methods are synchronized, making it thread-safe for simple concurrent
Public methods include those that were historically used in Vector-era code, such as addElement, insertElementAt, removeElementAt,
Constructors include Vector(), Vector(int initialCapacity), and Vector(int initialCapacity, int capacityIncrement). When capacityIncrement is zero, the vector
It remains part of the Java standard library for compatibility, but in new code it is usually
See also: java.util.List, ArrayList, Collections.synchronizedList, CopyOnWriteArrayList.