Why Java Vector Class is Considered Obsolete or Unofficially Deprecated? or Why should I always use ArrayList over Vector
You should use ArrayList over Vector because you should default to non-synchronized access. Vector synchronizes each individual method. That’s almost never what you want to do. Generally you want to synchronize a whole sequence of operations. Synchronizing individual operations is both less safe (if you iterate over a Vector, for instance, you still need to … Read more