摘要: CocurrentHashMap和Hashtable都是线程安全的,key和value都不能是null,其主要区别是在于实现线程安全的方式不同。 HashTableConcurrentHashMap(JDK8之前)ConcurrentHashMap 把所有的get、put方法加上锁实现同步 把数据分 阅读全文
posted @ 2019-09-09 08:59 万物共鸣 阅读(790) 评论(0) 推荐(0)