difference between arraylist and linkedlist otherthan
performance
Answers were Sorted based on User's Feedback
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 |
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 |
What is preparedstatement in java?
hr interview how many minutes asking question
Why there is no call by reference in java?
Can we create an object of private class?
What exactly is a .class file?
How is hashset defined in java?
What is preflight request?
Does apple use java?
What is the difference between Static and final?
how we can make a read-only class in java?
Where can I find jdk in my computer?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?