study guides for every class

that actually explain what's on your next test

Initial capacity

from class:

AP Computer Science A

Definition

Initial capacity refers to the starting size or capacity allocated for an ArrayList when it is created using its constructor. It determines how many elements can be stored in the list before it needs to dynamically resize itself.

"Initial capacity" also found in:

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.