+ 1

What better and faster? List or LinkedList?

25th Apr 2016, 12:30 AM
Francisco Edilson Silva de Freitas
Francisco Edilson Silva de Freitas - avatar
3 Antworten
+ 4
LinkedList is fast for adding and deleting elements, but slow to access a specific element. ArrayList is fast for accessing a specific element but can be slow to add to either end, and especially slow to delete in the middle. ArrayList is essentially an array.
19th May 2016, 12:34 PM
James Flanders
+ 1
You cannot compare those two. List is an Interface and LinkedList is a Class which implements the Interface.
17th Nov 2016, 10:00 PM
Roland
0
Performance depends on type of data set and operation you want to perform on it. For large data set and insert and delete operation use linkedlist and in other cases use list
7th Jun 2016, 5:24 PM
K R Hitesh
K R Hitesh - avatar