HashMap与Hashtable的区别
来源:互联网 发布:一楼土木人淘宝靠谱吗 编辑:程序博客网 时间:2024/05/17 22:44
http://oznyang.iteye.com/blog/30690
1.HashTable的方法是同步的,HashMap未经同步,所以在多线程场合要手动同步HashMap这个区别就像Vector和ArrayList一样。
2.HashTable不允许null值(key和value都不可以),HashMap允许null值(key和value都可以)。
3.可见Hashtable 继承自 Dictiionary 而 HashMap继承自AbstractMap。
0 0
- HashTable与HashMap的区别
- HashMap与Hashtable的区别
- Hashtable与HashMap的区别:
- HashMap 与 Hashtable 的区别?
- HashMap与HashTable的区别
- HashMap与Hashtable的区别
- HashMap与Hashtable的区别
- HashTable与HashMap的区别
- Hashtable与HashMap的区别
- HashMap与Hashtable的区别
- HashMap与HashTable的区别?
- hashtable与hashmap的区别
- HashMap与Hashtable的区别
- HashMap与Hashtable的区别
- HashMap与Hashtable的区别
- HashMap与Hashtable的区别
- hashtable与hashmap的区别
- HashMap与Hashtable的区别
- Spring中的FactoryBean
- 移动手机app开发
- cocos2d-js 3.0 RC0 手动绑定 C++调用js,js调用C++ jsb
- JS校验url地址
- 杨辉三角
- HashMap与Hashtable的区别
- 〖Linux〗Ubuntu13.10中打开键盘背光灯
- C++的时钟类
- 【VS2010学习笔记】【函数学习】一(VC6.0和VS2010主函数的不同)
- jQuery 插件 基础
- 服务应用程序连接(Service Application Connection)
- SocketWrapperg泛型类
- ifconfig显示的网卡信息和我的配置文件名不符
- Android——文件操作