ConcurrentHashMap 可以存重复的内容吗
时间: 2023-10-14 20:04:22 浏览: 145
java程序员面试大纲错过了金三银四你还要错过2018吗.docx
ConcurrentHashMap是一个线程安全的集合,它的特点是键不可重复,即不允许存放重复的键值对。因此,ConcurrentHashMap不可以存放重复的内容。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Java集合————ConcurrentHashMap](https://blog.csdn.net/yigan123/article/details/106742908)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [关于HashMap和ConcurrentHashMap理解](https://blog.csdn.net/qq_37672177/article/details/123401067)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文