what is vector in java?
<answer> Vector is a legacy class in java. It is synchronized class that means multiple thread cannot access simultaneously. <context> ArrayList is a new class in java. ArrayList class is faster than Vector class class because it is not thread-safe. The size of ArrayList class is 50% i.e half increment if needed. Java Vector. Vector class is synchronized class that means multiple thread cannot access simultaneously. It is thread-safe class. Vector is a legacy class in java. Vector class slower than ArrayList because of thread-safe. Vector class increase their size by 100% i.e double if needed.