I'm not sure if I'm using the correct terms, but I am curious how it's determined how much to increase the size of a Collection in Java when it gets full? I've tried searching but I'm not really coming up with anything useful.
So, if I have something like
List l = new ArrayList(1);
l.add("1");
l.add("2");
How does it determine how much to increase the size of the list? Is it always a set value and if so, what is that value? I'd also be interested in this information for BitSet if it differs.
Thanks and let me know if I should clarify any.