InterviewSolution
| 1. |
What Is Linkedlist Class In Java? How Is It Implemented? |
|
Answer» LinkedList class in JAVA implements List and Deque interfaces and LinkedList implements it using doubly linkedlist. WITHIN the LinkedList implementation there is a private class NODE which provides the structure for a node in a doubly linked list. It has ITEM variable for holding the value and two reference to Node class itself for connecting to next and previous nodes. LinkedList class in Java implements List and Deque interfaces and LinkedList implements it using doubly linkedlist. Within the LinkedList implementation there is a private class Node which provides the structure for a node in a doubly linked list. It has item variable for holding the value and two reference to Node class itself for connecting to next and previous nodes. |
|