📜  HashMap 和 HashTable 之间的区别 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:43.528000             🧑  作者: Mango

代码示例1
1) HashTable is thread-safe/synchronized
HashMap is not thread safe and faster
2) HashTable does not allow any null key
HashMap allows one null key
3) Both of them implement Map interface.