Frage im Vorstellungsgespräch bei Deloitte

What is the difference between ArrayList and Vector?

Antwort im Vorstellungsgespräch

Anonym

7. Juni 2017

1. ArrayList is not synchronized while the Vector is synchronized 2. ArrayList is fast because it is synchronized , on the other hand Vector is slow 3. ArrayList uses Iterator to traverse while Vector uses Enumeration 4. ArrayList is not legacy and is introduced in JDK1.2 while Vector is legacy.