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 |
Can you pass by reference in java?
Can we inherit inner class?
difference throws and throw in java
Which class is the superclass for all the classes?
Does java allow default arguments?
How can two threads be made to communicate with each other?
Why stringbuffer is faster than string?
What is jar?
how to use finalize()Method to resources
What methods are used in Servlet?Applet communication?
C and C++ has constructors and distructors, why does Java does not have distructors?
Which is best ide for java?