difference between arraylist and linkedlist otherthan
performance

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jagged array in java?

517


What is string pool in java?

554


Does java support multiple inheritances?

552


What is meant by distributed application? Why are we using that in our application?

540


What are the topics in advance java?

503






Why do we create threads in java?

564


How to make object serializable in java?

540


Java is pass by value or pass by reference? Explain

524


What will be the output of round(3.7) and ceil(3.7)?

666


How many bytes is a string java?

520


Can you use abstract and final both with a method?

566


What is thread life cycle in java?

572


What is the difference between path and classpath variables?

518


What is the difference between class forname and new?

538


What Is Query Throttling in java?

551