+ 1
What better and faster? List or LinkedList?
3 Answers
+ 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.
+ 1
You cannot compare those two.
List is an Interface and LinkedList is a Class which implements the Interface.
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