I have a basic question on Java ArrayList.
ArrayList
When ArrayList is declared and initialized using the default constructor, memory space for 10 el
It will depend on the implementation, but from the Sun Java 6 source code:
int newCapacity = (oldCapacity * 3)/2 + 1;
That's in the ensureCapacity method. Other JDK implementations may vary.
ensureCapacity