posted 14 years ago
ArrayList, vector and all map allocates a default initial memory of 10 objects.
In case of ArrayList, when a request of 11th object comes it increases to 1.5 times of present size ie 10 --> 15 --> 22...
In case of Vector, when a request of 11th object comes it increases to 3 times of present size ie 10 --> 20 --> 40...
In case of Map, when it is .75 (equal to load factor) full object comes it increases to 2.0 times of present size ie 10 --> 15 --> 22...
NOTE :- in case of Vector instead of incretement to double you can define increment size. then it will increase only that no of objects only not Double.