摘要: 线程安全:Vector 使用了 Synchronized 来实现线程同步,是线程安全的,而 ArrayList 是非线程安全的。 性能:ArrayList 在性能方面要优于 Vector。 扩容:ArrayList 和 Vector 都会根据实际的需要动态的调整容量, 只不过在 Vector 扩容每 阅读全文
posted @ 2020-06-09 20:42 云梦曦 阅读(2777) 评论(0) 推荐(0)