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 difference between a switch statement and an if statement?
Why we use methods in java?
What is a hashmap used for?
What is difference between throw and throws ?
What is the difference between a break statement and a continue statement?
What is immutable data?
Is vector synchronized in java?
What is the use of a copy constructor?
Is set thread safe java?
What is use of super keyword in java?
What is string [] args?
What is jvm? How its run?
What do you mean by scope of variable?
What is use of functional interface in java 8? Explain
Where is singleton pattern used?