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 the minimum and maximum length of an identifier?
What is the use of java?
Can a class extend more than one class?
Is arraylist an object in java?
what is the need of the Ajax?
What is math in java?
How does thread synchronization occurs inside a monitor? What levels of synchronization can you apply?
I have a String s = java; What is the output when I say s.replaceAll('j', 'k'); Also what is the value of s after replacing?
What is quick sort in java?
How are the elements of a gridbaglayout organized in java programming?
What are static variables and functions?
What is string english?