Eception is thrown when capacity of arraylist exceeds
Answers
Answered by
2
Explanation:
✍An ArrayList object has a capacity and a size. The capacity is the total number of cells.
The size is the number of cells that have data in them.
Answered by
1
Count is the number of elements that are actually in the ArrayList. Capacity is always greater than or equal to Count. If Count exceeds Capacity while adding elements, the capacity is automatically increased by reallocating the internal array before copying the old elements and adding the new elements.
Thnku!❤️
Similar questions
English,
6 months ago
Social Sciences,
6 months ago
English,
6 months ago
Hindi,
1 year ago
Social Sciences,
1 year ago