difference between arraylist and linkedlist otherthan
performance

Answers were Sorted based on User's Feedback



difference between arraylist and linkedlist otherthan performance..

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

difference between arraylist and linkedlist otherthan performance..

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

Post New Answer

More Core Java Interview Questions

Can we start a thread twice in java?

0 Answers  


What value is a variable of the string type automatically initialized?

0 Answers  


Is hashmap thread safe?

0 Answers  


can u handle an error if u write Thowable in the catch class lise try { some errorneous code }catch(Throwable e){ ...}

4 Answers  


What is the difference between the >> and >>> operators?

1 Answers  


Explain the importance of finalize() method.

0 Answers  


Lowest Common ancestor in a Binary Search Tree and Binary Tree.

0 Answers   Amazon,


What are "methods" and "fields"?

0 Answers   Wipro,


Variable of the boolean type is automatically initialized as?

0 Answers  


What is “try and catch” in java

5 Answers   Cap Gemini, TCS,


These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }

0 Answers   HCL,


What happens when main () method is declared as private?

0 Answers   Tech Mahindra,


Categories