What are the advantages of Linked List over an array?

What are the advantages of Linked List over an array?

- The size of a linked list can be incremented at runtime which is impossible in the case of the array. 

- The List is not required to be contiguously present in the main memory, if the contiguous space is not available, the nodes can be stored anywhere in the memory connected through the links. 

-The List is dynamically stored in the main memory and grows as per the program demand while the array is statically stored in the main memory, size of which must be declared at compile time. 

-The number of elements in the linked list are limited to the available memory space while the number of elements in the array is limited to the size of an array.

Read More →
Search
Categories
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!