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 check if two given string are anagrams?
class A { private int i; } class B extends A { private int i; } if I create an object of B class what will be the memory of that object.
Why hashset is used in java?
what is the full form of java
What are the super most classes for all the streams?
Java Compiler is stored in JDK, JRE or JVM?
What do you understand by the term string pool?
Difference between arraylist and hashset in java?
What is classpath?
Is null a value?
How do you compare arrays in java?
What is a parent class in java?