+ 1
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
1 Answer
+ 1
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.