DEV Community

Ravi Yasas
Ravi Yasas

Posted on

2 1

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

AWS GenAI LIVE image

How is generative AI increasing efficiency?

Join AWS GenAI LIVE! to find out how gen AI is reshaping productivity, streamlining processes, and driving innovation.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay