These collections internally use a fixed array to store data. "Capacity" is the initial number of elements that an array can hold. When you add more items than the current capacity, the inner array needs to be expanded. This is a time-consuming operation, and the initial capacity is trying to help if you know how many items will be added.
source share