arraylist vs linkedlist vs vector code example
Example 1: vector vs linkedlist
- LinkedList not synchronized, doubly linked
- Vector is synchronized, thread safe
Example 2: arraylist vs linkedlist
- ArrayList not syncronized, array based class
- LinkedList not synchronized, doubly linked
ArrayList and LinkedList both keep ordering
ArrayList and LinkedList both allow duplicates