Domanda di colloquio di JPMorganChase

What is the difference between ArrayList and LinkedList

Risposta di colloquio

Anonimo

13 set 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.