arraylist vs linkedlist vs vector in java code example
Example 1: vector vs linkedlist
- LinkedList not synchronized, doubly linked
- Vector is synchronized, thread safe
Example 2: arraylist vs vector in java
ArrayList is not thread safe
Vector is thread safe/syncronized
ArrayList is faster than Vector
Both allow duplicate values and keep ordering
Both are implementations of List interface