📜  java代码示例中的arraylist vs vector

📅  最后修改于: 2022-03-11 14:52:38.145000             🧑  作者: Mango

代码示例2
ArrayList is not thread safe
Vector is thread safe/syncronized
ArrayList is faster than Vector
Both allow duplicate values and keep ordering
Both are implementations of List interface