posted 17 years ago
Hi.
Difference between arraylist and vector is that, arraylist is synchronized where as vector is synchronized, in arraylist when the data added increases array size will increase, but in vector when initial size should be specified, if we add more data to it, it will double the size giving more allocations.
According to my knowledge, these are the diffrences i know.
Please tell me these differences are correct or not. If more differences are there, post those answers.
If arraylist is not synchronized, how we can do it synchronized.
If already list is there, what is the need of arraylist.
Thankyou.