Upload
bharat-savani
View
100
Download
0
Embed Size (px)
Citation preview
When to use ArrayList or LinkedList?
When to use ArrayList?
• ArrayList can be frequently used when there are more retrieval operations. That means get(int index) method is used more.
When to use LinkedList?
• If there is more add(E e) and remove(E e) then LinkedList<E> is preferred more. Reason is add and remove operations are not costly on LinkedList.
Read more about it.
• Difference between ArrayList<E> and LinkedList<E>
• Similarities in ArrayList<E> and LinkedList<E>
That’s all folks.