difference between arraylist and linkedlist otherthan
performance

Answers were Sorted based on User's Feedback



difference between arraylist and linkedlist otherthan performance..

Answer / db

In array list if we perform insertion or deletion operation, then there is many changes in the remaining objects to get adjust. if any operation like insertion or deletion is performed on linked lists there is only updation links between the nodes. so if there is lots of insertions and deletions better to go with linked lists rather than array list.

Is This Answer Correct ?    10 Yes 3 No

difference between arraylist and linkedlist otherthan performance..

Answer / rahul

There are lot of method in LinkedList like addFirst(),
addLat(), pop(), peak() etc.
But ArrayList dont.

Is This Answer Correct ?    3 Yes 2 No

Post New Answer

More Core Java Interview Questions

Does list allow duplicates in java?

0 Answers  


What are the new features in java 8? Explain

0 Answers  


What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?

0 Answers   Bravura Solutions,


What is the difference between heap and stack memory?

0 Answers  


How do you reverse a list?

0 Answers  


Explain the usage of this with constructors?

0 Answers  


What is jvm? How its run?

0 Answers  


What is difference between path and classpath in java?

0 Answers  


Can we declare register variable as global?

0 Answers  


What is map java?

0 Answers  


What is the static field modifier?

0 Answers  


Where we write javascript code in html page?

0 Answers  


Categories