Difference between ArrayList and Vector in Java

FeaturesArrayListVector
Thread SafetyArrayList is not thread safeVector is thread safe
PerformanceAs ArrayList is not synchronized, it provides better performance than VectorAs Vector is synchronized, it performs slightly slower than ArrayList
Legacy CodeArrayList is not considered a legacy codeVector class is considered a legacy code and is due for deprecation