当前位置: 移动技术网 > IT编程>开发语言>Java > HashTable、ConcurrentHashMap、TreeMap、HashMap关于键值的区别

HashTable、ConcurrentHashMap、TreeMap、HashMap关于键值的区别

2018年12月28日  | 移动技术网IT编程  | 我要评论
集合类 key value super 说明
hashtable 不能为null 不能为null dictionary 线程安全
concurrenthashmap 不能为null 不能为null abstractmap 线程局部安全
treemap 不能为null 可以为null abstractmap 线程不安全
hashmap 可以为null 可以为null abstractmap 线程不安全

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网