Vector 與 Stack

一、類圖關係         二、要點筆記 1.  隸屬於 List 族系,Vector 在數組基礎上實現了按需增減容量的特性,內部通過維持一個數組實現 2.  迭代器 和 Enumeration 均爲 fail-fast 3.  Vector 是線程安全的(使用 synchronized 修飾符),如果不需要線程安全應該選用 ArrayList  4.  Vector 的構造函數中能夠指定初始容
相關文章
相關標籤/搜索