crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

Difference between ArrayList and LinkedList
Question Posted on 18 Sep 2019Home >> Java >> Core Java >> Difference between ArrayList and LinkedList

Difference between ArrayList and LinkedList
Below are the 4 main difference between ArrayList vrs LinkedList
(1) ArrayList uses a dynamic array to store the elements internally. On the other hand LinkedList uses a doubly linked list to store the elements internally.
(2) ArrayList is better when we are storing and accessing data. On the other hand LinkedList is better for manipulating data.
(3) If we do Manipulation with ArrayList it is very slow because it internally uses an array. If we remove any element from the array, all the bits are shifted in memory. On the other hand Manipulation with LinkedList is faster than ArrayList because it uses a doubly linked list, so no bit shifting is required in memory.
(4) An ArrayList class can act as a list only because it implements List only. LinkedList class can act as a list and queue both because it implements List and Deque interfaces.
0
0



.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




Other Important Questions

what is an object

what is OOAD

difference between c++ and java

what is a transient variable in java

difference between C and Java on pointers






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap