Vector 和 ArrayList 实现了同一接口 List, 但所有的 Vector 的方法都具有 synchronized 关键修饰。但对于复合操作,Vector 仍然需要进行同步处理。
Vector 比 ArrayList慢,是因为vector本身是同步的,而arraylist不是
Vector 和 ArrayList 实现了同一接口 List, 但所有的 Vector 的方法都具有 synchronized 关键修饰。但对于复合操作,Vector 仍然需要进行同步处理。
Vector 比 ArrayList慢,是因为vector本身是同步的,而arraylist不是