How does an arraylist expands itself when its maximum capacity is reached ?
Answers
Answered by
0
Answer:
Explanation:
When ArrayList is declared and initialized using the default constructor, memory space for 10 elements is created. NO. ... * The capacity of the ArrayList is the length of this array buffer. Any * empty ArrayList with elementData == EMPTY_ELEMENTDATA will be expanded to * DEFAULT_CAPACITY when the first element is added.
Similar questions