What's the difference between ArrayList and LinkedList? If we don't care about speed, it seems to me that LinkedList can replace Arraylist anywhere. Is it also true vice versa? What standard can we use when deciding to use ArrayList or LinkedList?
In my view, the different points are the following: 1)Positional access has constant time performance in ArrayList and VEctor, but linear time in LinkedList. 2)in most cases the primary implementation ArrayList is the best choice for implementing listd. Where frequent insertions and deletions occur inside a list, a LinkedList can be worth considering.
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads: