1.

What Is The Difference Between An Array And Linked List In Java?

Answer»

This is one of the frequently asked linked LIST questions on programming job interviews. There is much DIFFERENCE between an array and linked list but the most important is how they are stored into the memory location. Array stores ELEMENTS at the adjacent memory location, while linked list stores them at scattered, which means searching is EASY in an array and difficult in linked list but adding and REMOVING an element from start and end is easy in linked list. See here for more differences between array and linked list.

This is one of the frequently asked linked list questions on programming job interviews. There is much difference between an array and linked list but the most important is how they are stored into the memory location. Array stores elements at the adjacent memory location, while linked list stores them at scattered, which means searching is easy in an array and difficult in linked list but adding and removing an element from start and end is easy in linked list. See here for more differences between array and linked list.



Discussion

No Comment Found