HashMap和Hashtable区别

来源:互联网 发布:nginx禁止通过ip访问 编辑:程序博客网 时间:2024/04/28 14:56
1 access to the Hashtable is synchronized on the table while access to the HashMap isn't
2 HashMap is fail-safe while the enumerator for the Hashtable isn't
3 HashMap permits null values in it, while Hashtable doesn't

原创粉丝点击