Core Java - What is the difference between LinkedList and ArrayList in Java ?
Main differences between LinkedList and
ArrayList are :
a. LinkedList is the doubly linked list
implementation of list interface , while , ArrayList is the resizable array
implementation of list interface.
b. LinkedList can be traversed in the reverse
direction using descendingIterator() method provided by the Java Api
developers , while , we need to implement our own method to traverse ArrayList
in the reverse direction .
No comments:
Post a Comment