Multiple choice technology web technology

Difference between Vector and ArrayList?

  1. Vector is synchronized whereas arraylist is not

  2. ArrayList is synchronized whereas Vector is not

  3. Both are same

  4. None of the Above

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Vector is a legacy Java collection class that is synchronized (thread-safe), whereas ArrayList is not synchronized, making ArrayList faster but not safe for unsynchronized multi-threaded access.