摘要: HashMap是非线程安全的,如果想要用线程安全的map,可使用同步的HashTable或通过Collections.synchronizeMap(hashMap)让HashMap变的同步,或者使用并发集合ConcurrentHashMap。下面来介绍一些常见的HashMap面试题目。 1、为何Ha 阅读全文
posted @ 2020-04-27 15:31 归去来兮辞 阅读(630) 评论(0) 推荐(0) 编辑