Sollicitatievraag bij JPMorganChase

What is the difference between ArrayList and LinkedList

Antwoord op sollicitatievraag

Anoniem

13 sep 2017

The main difference is that ArrayList is dynamic and LinkedList is static in memory allocation. ArrayList shifts memory bits to increase or decrease the size of the data structure in memory. Linked list uses a doubly linked list and so no bit shifting is required.