Hashtable 是线程安全的,ConcurrentHashMap 和 Hashtable 是不允许 null 作为键和值的,HashMap允许null做为键值
HashMap、Hashtable、ConcurrentHashMap是否允许null作为键值
最新推荐文章于 2024-06-06 08:08:52 发布
Hashtable 是线程安全的,ConcurrentHashMap 和 Hashtable 是不允许 null 作为键和值的,HashMap允许null做为键值