01. What is LinkedList?
LinkedList:
1.LinkedList is a class
2.LinkedList is a Java.util package.
3.LinkedList maintain the insertion order.
4.LinkedList is allowed the "Null"value morethan time.
5.LinkedList is allowed the duplicate value.
02.When to Use LinkedList?
1.Memory Allocation Flexibility
2.Frequent Insertions
3.When Random Access Is Not Needed
03.Advantages of LinkedList?
1.LinkedLists do not allocate memory in advance. Memory is used only as needed for new nodes.
2.Unlike arrays, elements are not moved
3.Memory allocated only when needed
04.Disadvantages of TreeSet?
1.Frequent Random Access
2.Memory Overhead is a Concern
Top comments (0)