Can anyone please let me know when should LinkedList be used over ArrayList? I'm bit confused on this.
Check these tutorials: Linked Lists , Linked List Program, Array List Program , Converting Lists to Arrays
1) In Linked List insert and remove operations give good performance (O(1)) compared to ArrayList(O(n)). Hence if there is a requirement of frequent addition and deletion in application then LinkedList is a best choice.
2) Search (get method) operations are fast in Arraylist (O(1)) but not in LinkedList (O(n)) so If there are less add and remove operations and more search operations requirement, ArrayList would be your best bet.
For more details follow the link http://javarevisited.blogspot.in/2012/02/difference-between-linkedlist-vs.html. For practice programs on Linked and Arraylist please follow http://java.meritcampus.com/t/174/Arraylist
It looks like you're new here. If you want to get involved, click one of these buttons!