集合类 | Key | Value | Super | 说明 |
Hashtable | 不允许为 null | 不允许为 null | Dictionary | 线程安全 |
ConcurrentHashMap | 不允许为 null | 不允许为 null | AbstractMap | 锁分段技术(JDK8:CAS) |
TreeMap | 不允许为 null | 允许为 null | AbstractMap | 线程不安全 |
HashMap | 允许为 null | 允许为 null | AbstractMap | 线程不安全 |
Java基础知识总结 (二) Hashtable ConcurrentHashMap TreeMap HashMap 区别
猜你喜欢
转载自blog.csdn.net/weixin_43870026/article/details/85311457
今日推荐
周排行