difference between arraylist and linkedlist otherthan
performance
Answer Posted / 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 |
Post New Answer View All Answers
What is the return type of the main method?
What is matcher in java?
Are strings immutable in java?
what do you mean by stream pipelining in java 8? Explain
Can java object be locked down for exclusive use by a given thread?
Is java platform independent?
Are arrays static in java?
What is a constructor, constructor overloading in java?
How to change the priority of thread or how to set priority of thread?
What is private public protected in java?
Can you override static methods?
What is the difference between variable declaration and variable initialization?
What is externalizable interface?
What do you mean by hashing?
What happens if a constructor is declared private?