LinkedList in Java
LinkedList in Java
A linked list is simply a collection of several nodes with different values. And there is no order for this data structure. Every element in a linked list is called a node. The first node is called the head and the last node is called the tail.
This node can be divided into two parts. They are called Value and Reference. These nodes are connected to each other with the help of a link, and the reference is used to find the memory address of the next node.
We can't say exactly how a linked list will be stored in memory, it won't be stored in a specific order
There are four main types of linked lists. If they are,

.png)
Comments
Post a Comment