what is the major difference between linkedlist and arraylist in java?



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

Post New Answer

More Core Java Interview Questions

What is a list in java?

1 Answers  


What is an accessor?

2 Answers   BirlaSoft,


Which list is sorted in java?

1 Answers  


How does abstract modifier work?

1 Answers   Wipro,


Can we inherit inner class?

1 Answers  


What is purpose of find feature?

1 Answers  


What does indexof mean?

1 Answers  


What is volatile data type?

1 Answers  


What is the difference between set and list?

5 Answers  


What is a superclass?

1 Answers  


What is dynamic dispatch in java?

4 Answers  


Can we access instance variables within static methods ?

1 Answers  


Categories