¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita0
LinkedList in Java
Can you explain me LinkedList(java) in simple way as possible? Where it used? Why it used? Benifits of it.
1 Respuesta
+ 2
You can think of LinkedList as small chunks of memory. In contradiction to Array, array is contiguous memory allocation but LinkedList can be discrete allocation.
LinkedList is a set of nodes that are connected by a link.
Node of a LinkedList contains two things. First- It contains the data or value.
Second- It contains the address/pointer of Next node.
First node of a LinkedList is called head node and last node is tail. Address of head is contained in another variable. A LinkedList is accessed by it's head node.