【问题标题】:what is difference between Hashmap and concurrent HashMap? [duplicate]Hashmap 和并发 HashMap 有什么区别? [复制]
【发布时间】:2013-07-28 11:26:39
【问题描述】:

我是 Stackoverflow 的新手,通过谷歌搜索但无法理解它们之间的基本区别。

【问题讨论】:

标签: java hashmap


【解决方案1】:

ConcurrentHashMap 是线程安全的,而基本的HashMap 不是。 official documentation.

中也对此进行了解释

【讨论】:

  • 检查可能的 dup 问题,ConcurrentHashMap 除了线程安全之外还有更多内容。
  • 输入此答案后,我看到了您指向 dup 问题的链接。我想这个问题很快就会结束;)
猜你喜欢
  • 2019-12-03
  • 2011-01-27
  • 2013-10-13
  • 2012-01-14
  • 2011-07-05
  • 2021-01-02
  • 1970-01-01
  • 1970-01-01
  • 2018-01-07
相关资源
最近更新 更多