来吧,我们看看
ArrayList:线程不安全,效率高,常用Vector:线程安全的,效率低我们看Vector的源码:
public synchronized void ensureCapacity(int minCapacity) { if (minCapacity > 0) { modCount++; ensureCapacityHelper(minCapacity); } }