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 list allow duplicates in java?
What are the new features in java 8? Explain
What design pattern you have used in your project? I answered Factory pattern, how it is implemented? What are its advantage? Do know about Abstract Factory?
What is the difference between heap and stack memory?
How do you reverse a list?
Explain the usage of this with constructors?
What is jvm? How its run?
What is difference between path and classpath in java?
Can we declare register variable as global?
What is map java?
What is the static field modifier?
Where we write javascript code in html page?