ArrayList vs LinkedList

Question 1 Difference between Arraylist and LinkedList. (or) When should we use Arraylist and when should we go for LinkedList?   Answer   LinkedList and ArrayList are two different implementations of the List interface. LinkedList implements it with a doubly-linked list. ArrayList implements it with a dynamically re-sizing array.   LinkedList allows for constant-time insertions […]