Is arraylist faster than array?



Is arraylist faster than array?..

Answer / Pawan Sharma

The performance of ArrayList and Array in Java can vary depending on the specific use case. Arrays are generally faster for random access due to their fixed size, while ArrayList provides dynamic resizing, which can make it more efficient when adding or removing elements.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is mergesort and hashtable?

1 Answers  


What is difference between an Array and ArrayList?

1 Answers   UGC Corporation,


Write an algorithm to show various operations on ordered list and arrays

1 Answers  


Can you provide some implementation of a dictionary having large number of words?

1 Answers  


Which time complexity is best?

1 Answers  


State the merit of linked representation of binary trees?

1 Answers  


What is the structure of an array?

1 Answers  


Which is faster array or list?

1 Answers  


Explain circular linked list?

1 Answers  


Define path in a graph?

1 Answers  


What is data type and its types?

1 Answers  


What is the minimization factor and time complexity of b-tree?

1 Answers  


Categories