📜  提供 hashmap 和 hashtable 之间的区别 - 无论代码示例

📅  最后修改于: 2022-03-11 14:57:35.704000             🧑  作者: Mango

代码示例1
HashMap is non-synchronized. It is not thread-safe and can't be shared between many threads without proper synchronization code whereas Hashtable is synchronized. ... HashMap allows one null key and multiple null values whereas Hashtable doesn't allow any null key or value.