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 |
Package1 and Package2 both have a method name lets say "methodA" with different implementation. When I import both the packages in a java class how can I use both the methods?
Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?
How to sort an array from smallest to largest java?
What is t in parametric equations?
What is bigger kb or mb?
What is lossy conversion in java?
Tell me the Importent classes in net package?
How are the elements of a gridbaglayout organized?
What is the use of ?this??
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
Is set ordered in java?
What are different types of encoding?