Pregunta de entrevista de KUNCHAM Software Solutions

What are the differences between array list and linked list?

Respuesta de la entrevista

Anónimo

28 de sept de 2019

ArrayList internally uses a dynamic array to store the elements. LinkedList internally uses a doubly linked list to store the elements. Manipulation with ArrayList is slow because it internally uses an array. If any element is removed from the array, all the bits are shifted in memory.