Computer Science, asked by ypadte985, 1 year ago

Give any two limitations of an array.

Answers

Answered by Anonymous
18
hello,friend ,i wil help you with this.

BRIEF EXPLANATION:

 ArrayList are not great if you need to add items in a specific position that's not the last position. In order to make that happen, the ArrayList would have to moves its own items a bit, in order to create room for this new item. Same for delete in a specific position, it would require move all items after the specific item-to-be-deleted to one position before. (Again move items requires copying from one array to another)Usually, those are not big problem when working with few items. But if you have hundreds of thousands of items and your collection needs to support intensively add and delete operations in different positions and your app is performance critical, it might be better use another collection instead.

hope my answer helps you pls mark as brainlist
Answered by kurohit933
0

Explanation:

this is a your answer to the question answer

Attachments:
Similar questions