DEV Community

Ravi Yasas
Ravi Yasas

Posted on

Vector vs ArrayList vs LinkedList

Here I mentioned all the differences between Vector, ArrayList, and LinkedList.

Vector ArrayList LinkedList
Data structure Growable array Dynamic array Doubly linked list
Increment size 100% 50% No initial size
Traverse Uses enumeration Uses iterator Uses iterator
Accessibility Random and fast Random and fast Sequential and slow
Order Insertion order Insertion order Insertion order
Duplicates Allowed Allowed Allowed
Insert / Delete Slow Slow Fast
Synchronized Yes No No
Null values Allowed Allowed Allowed

Discussion (0)