摘要: HashMap 和 HashTable 区别 ①、HashMap 是线程不安全的,HashTable 是线程安全的; ②、由于线程安全,所以 HashTable 的效率比不上 HashMap; ③、HashMap最多只允许一条记录的键为null,允许多条记录的值为null,而 HashTable不允 阅读全文
posted @ 2020-10-28 15:02 java之途 阅读(167) 评论(0) 推荐(0) 编辑