Pramod P Deore wrote:If program runs in single threaded environment then time required for calling a synchronized method non-synchronized method is same. Because of synchronized method only one thread can execute that method at a time, but in single thread environment there is only one thread so time required is also same.
so it means that in single threaded environment both arraylist and vector will yiel same performance
am i right?
A larger difference comes from the different rescaling algorithms they use -- ArrayList grows in smaller increments, and is generally more efficient.