what is the major difference between linkedlist and arraylist in java?
Answer / Mukesh Gaurav
The main differences between LinkedList and ArrayList in Java are that LinkedList uses nodes to store elements, which allows for insertion and deletion operations to be more efficient on average, while ArrayList stores elements in an array, allowing for faster access to specific elements. Also, LinkedList implements the List interface and Deque interface, whereas ArrayList only implements the List interface.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a list in java?
What is an accessor?
Which list is sorted in java?
How does abstract modifier work?
Can we inherit inner class?
What is purpose of find feature?
What does indexof mean?
What is volatile data type?
What is the difference between set and list?
What is a superclass?
What is dynamic dispatch in java?
Can we access instance variables within static methods ?