Vector是同步的,而ArrayList没有!这是他们之间最大的区别!
因而,Vector的效率要比ArrayList差,所以不是必要的时候,推荐使用ArrayList.

解决方案 »

  1.   

    我不这么认为,数据量不是很大的时候,我喜欢用Vector,效率上是差不多的!
      

  2.   

    If multiple threads access an ArrayList instance concurrently, and at least one of the threads modifies the list structurally, it must be synchronized externally. 简单应用的话ArrayList就可以了
    在J2ME中ArrayList是可选类