Can we give size to arraylist?



Can we give size to arraylist?..

Answer / Waseem Alam

Yes, you can initialize the ArrayList with a specific size using the constructor, but the size can be dynamically changed later.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Data Structures Interview Questions

Are data structures important?

1 Answers  


What is difference between hashmap and hashset?

1 Answers  


Which is faster arraylist or linked list?

1 Answers  


What does enum do?

1 Answers  


what is mean by d-queue?

11 Answers  


What is homogeneous array?

1 Answers  


Explain in brief a linked list.

1 Answers  


How does the bubble sort work?

1 Answers  


Is hashmap synchronized?

1 Answers  


What are linked lists good for?

1 Answers  


How remove all from arraylist?

1 Answers  


Which data structure is applied when dealing with a recursive function?

1 Answers  


Categories