Vector is a dynamic data structure that allows its size to be changed. It can dynamically shrink or grow as needed. A vector class is part of the java.util package. A data element can be inserted into or removed from any location of a vector with a single method invocation. The elements of a vector must be objects and cannot be primitive types. A Vector provides methods to manage the list of objects it contains. A Vector is similar to an ArrayList but Vector methods are synchronized for thread safety.