分享知識-快樂自己:HashMap 與 HashTable 的區別

特性: HashMap 與 Hashtable 的分析: 1):HashMap簡介   1、底層數組+鏈表實現,可以存儲null鍵和null值,線程不安全   2、HashMap 不是線程安全的   3、HashMap 是 map 接口的子類。   4、HashMap 允許null key 和 null value。   5、允許 key 重複,但是會把之前的覆蓋。   6、HashMap 是 H
相關文章
相關標籤/搜索