Java Vector class is a part of the Java Collection framework. It is used to create arrays whose size can increase or decrease (that is, Dynamic Array) during the execution. The Java Vector class implements the List interface in the Java Collection framework. The main difference between the** Vector** class and other Collection classes is that the** Vector** class is synchronous, unlike others.

Java Vector Class

Vector class contains Legacy methods, unlike other Collection classes. Initially, Vector class was a Legacy class. It was added to the Collection framework later. The collection framework was not included in the early version of java. So, Legacy classes are used to store objects.

The hierarchy of the Vector class is shown in the diagram below.

#java #vector #java vector

Java Vector Class Example | Vector Class In Java
3.00 GEEK