InterviewSolution
Saved Bookmarks
| 1. |
When to use ArrayList and LinkedList in Java? |
|
Answer» The List interface is implemented using the ArrayList and the LinkedList. The ArrayList implements a dynamically RESIZED array while the LinkedList implements a doubly linked list. So ArrayList or LinkedList in Java should be SELECTED ACCORDING to the implementations required. Also the differences between both of these are provided to make the selection easily. Some of the differences between Arraylist and LinkedList are given as follows:
|
|