What are the disadvantages of using collection classes over arrays?



What are the disadvantages of using collection classes over arrays?..

Answer / Arun Verma

Collection classes generally have slower access times for individual elements compared to arrays. Also, arrays have a fixed size at creation while collections can dynamically grow and shrink, which might lead to increased memory usage.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

What is difference between tree and binary tree?

1 Answers  


Explain heapsort. What is its complexity?

1 Answers   Essar,


What is a spanning tree in data structure?

1 Answers  


What is homogeneous array?

1 Answers  


Give one example of right rotation.

1 Answers  


Write code for reversing a linked list.

1 Answers  


Define circular list?

1 Answers  


State the advantages of using infix notations?

1 Answers  


What are the advantages of bubble sort?

1 Answers  


How does linkedhashset work internally?

1 Answers  


What is collections singletonlist?

1 Answers  


What is list data structure?

1 Answers  


Categories