java - java hashTable 在版本 7 中是否仍然同步?

标签 java collections synchronization hashtable

我读了一篇 Oracle 教程,其中提到哈希表不再同步。从何时起? http://docs.oracle.com/javase/tutorial/collections/implementations/index.html 表后第三段。

最佳答案

不,Hashtable 仍然是同步的。您所指的段落甚至明确地说:

The legacy collections Vector and Hashtable are synchronized.

(前一句:

[...] The fact that these implementations are unsynchronized [...]

指的是表中包括HashTable的集合。)

关于java - java hashTable 在版本 7 中是否仍然同步?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9153785/

相关文章:

java - 无法从我的 Android 模拟器连接到本地 Web 服务

Java 集合 ArrayList、LinkedList 抛出异常

ruby-on-rails - rails : rendering collections as tr with a table around it?

Java扩展类类型

linux - 仅使用 ssh/scp 的文件同步

c# - SynchronizationContext 可以不在 WinForms/WPF 应用程序中使用吗?

java - 克隆 jOOQ Record 对象的推荐方法是什么?

java - 处理中的音量控制(java)?

java - JFrame更新问题

android - 销毁 Activity 时停止处理程序可运行的任务