This post originated from an RSS feed registered with Java Buzz
by Javin Paul.
Original Post: Difference between LinkedList vs ArrayList in Java
Feed Title: Javarevisited Blog
Feed URL: http://javarevisited.blogspot.com/feeds/posts/default?alt=rss
Feed Description: Blog on Java, Unix, Linux, FIX Protocol technology. I share my experience as tutorial, article, interview questions, programming, design etc.
LinkedList and ArrayList both implement List Interface but how they work internally is where the differences lies. Main differencebetween ArrayList and LinkedList is that ArrayList is implemented using re sizable array while LinkedList is implemented usingdoubly LinkedList. ArrayList is more popular among Java programmer than LinkedList as there are few scenarios on which LinkedListis a suitable collection than ArrayList. In this article we will see some differences between LinkedList and ArrayList and tryto find out when and where to use LinkedList over ArrayList.