LinkedList vs. ArrayList | Sololearn: Learn to code for FREE!


LinkedList vs. ArrayList

LinkedList vs. ArrayList The most notable difference between the LinkedList and the ArrayList is in the way they store objects. The ArrayList is better for storing and accessing data, as it is very similar to a normal array. The LinkedList is better for manipulating data, such as making numerous inserts and deletes. In addition to storing the object, the LinkedList stores the memory address (or link) of the element that follows it. It's called a LinkedList because each element contains a link to the

10/25/2017 7:16:00 AM

Bashdar A.Mohammed

1 Answer

New Answer


Summary: - Use an ArrayList when you need rapid access to your data. - Use a LinkedList when you need to make a large number of inserts and/or deletes.