posted 18 years ago
Both ArrayList and Vector has default size of 10
unless u specify size in constructor while constructing them.
When you will add an element to an ArrayList or Vector then it will check wheather it's size is equal to it's capacity , and if it is then it will allocate 10 more spaces for elements if nothing is specified while constructing them, am not sure how much more spaces it will allocate if we will give size in constructor.
Warm Regards<br />Ajit Amitav Das<br />SCJP 1.5