What is the difference between ArrayList and LinkedList in Java?

Java 8Object Oriented ProgrammingProgramming

An array list is created with an initial size. When this size is exceeded, the collection is automatically enlarged. When objects are removed, the array may be shrunk.

The LinkedList class extends AbstractSequentialList and implements the List interface. It provides a linked-list data structure.

Published on 17-Jan-2018 10:26:49