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 |
How do you compare objects in java?
Can string be considered as a keyword?
is there a separate stack for each thread in java? : Java thread
What is preparedstatement in java?
Can a set contain duplicates?
How can we find size of the object ?
how can you catch multiple exceptions in java?
What is stringbuffer in java?
Can you tell me range of byte?
Need to use public,static keywords in main function?
What is an immutable object?
Any one can explain how the inerface uses in java. give with example.