In what scenario we use ArrayList and LinkedList? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

In what scenario we use ArrayList and LinkedList?

15th Mar 2017, 6:58 PM
Sagar Maharana
Sagar Maharana - avatar
4 Answers
+ 9
I would explain it but I think the tutorial does a better job of it. If you have looked at that and still don't know then I can try to help. So look over it again and see if it makes sense.
15th Mar 2017, 7:02 PM
J.G.
J.G. - avatar
+ 5
i got it .ArrayList is used whenever we required to store objects and not required any insertion and deletion from the ArrayList. Whereas in Linkedlist is used when there is possibility of large number of insertion and deletion is required because LinkedList can easily perform these operation in efficient way as compare to ArrayList as in it only a selected element is removed and insert without requiring anything shift to other elements of LinkedList..
15th Mar 2017, 7:14 PM
Sagar Maharana
Sagar Maharana - avatar
+ 4
thanks J.G
15th Mar 2017, 7:15 PM
Sagar Maharana
Sagar Maharana - avatar