Difference between Vector, ArrayList and LinkedList in Java


Vector:
  • It is synchronized
  • Fast access to elements using index
  • Optimized for storage space
  • Not optimized for inserts and deletes
ArrayList:
  • Same as Vector except the methods are not synchronized.  
  • Better performance
Linkedlist:
  • Fast inserts and deletes
  • Stacks and Queues (accessing elements near the beginning or end)
  • Not optimized for random access


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email


Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email