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 |
Is null function in java?
What is stringwriter?
What does main method?
Explain a few methods of overloading best practices in java?
diff between abstract methods and interfaces with programing (code) example?
How does finally block differ from finalize() method?
What code optimizations techniques you follow in general practice?
2 Answers Accenture, TCS, Wipro,
What is the nested interface?
Hi ,i convert contrller as jSp And presentation as servlet ...will it do? if so what are advantage and idsadvantages
Difference between string, string builder, and string buffer?
How do you sort objects in java?
Can Applet have constructors?