Computer Science, asked by Ashokkumarapu6573, 1 year ago

Eception is thrown when capacity of arraylist exceeds

Answers

Answered by choudhary21
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 Anonymous
1

\huge\sf\pink{♡Answer♡}

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