+ 2
Which is best array or linkedlist?why????
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
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
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☺️