+ 2

Which is best array or linkedlist?why????

20th Feb 2018, 2:16 PM
Keerthana Vema
Keerthana Vema - avatar
4 Réponses
+ 12
LinkedList is implemented as a double linked list. Its performance on add and remove is better than Arraylist, but worse on get and set methods. https://dzone.com/articles/arraylist-vs-linkedlist-vs
20th Feb 2018, 2:22 PM
Abhivarshini Maddala
Abhivarshini Maddala - avatar
0
depends on what u want to store in them if your data doesn't grow or shrink in size then use array and use linkedlist if you're data changes frequently
20th Feb 2018, 2:23 PM
Farshaad Heydari
Farshaad Heydari - avatar
0
B.E.Cause it's self-referential ,It has it's next elements address and travels with a flow, And so it's easy to access from the memory☺️
6th Jun 2018, 12:21 PM
SR SANKAR NARAYANAN
SR SANKAR NARAYANAN - avatar