posted 16 years ago
Raja,
If you look at the source code, you can see, apart from the differences that you have mentioned, the capacity increment ratio of Vector and ArrayList are different as well. I think Vector's capacity doubles every time its size reaches its capacity, whereas ArrayList's capacity increase by a factor of 1.1 (or something similar).
btw, if that is not confidential, with which company did you have the interviews?
Cheers,
Tim.