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 |
Does the order of public and static declaration matter in main method?
What is the collection interface?
why java uses class level type casting ?
What is singletonlist in java?
Why is it important to initialize a variable?
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?
How do you do descending order in java?
Why does the integer quotient -0/3 yield 0, but the double quotient -0.0/3.0 yields – 0.0?
what is difference between prepare stetement and callable starement with example?
What is the use of singleton?
Does unicode support all languages?
Explain the importance of throwable class and its methods?