Sunday, June 15, 2014

What is the difference between an ArrayList and a LinkedList ?





ArraylistLinklist
Random access.Sequential access.The control traverses from the first node to reach the indexed node.
Only objects can be added.The LinkedList is implemented using nodes linked to each other. Each node contains a previous node link, next node link, and value, which contains the actual data

No comments:

Post a Comment