摘要: HashMap和HashTable都采用了hash法进行索引HashMap允许键值为空(但只允许一条为空),而HashTable不允许。HashMap是非线程安全的,而HashTable是线程安全的。HashMap使用Iterator,HashTable使用Enumerationhash值使用不同, 阅读全文
posted @ 2016-03-11 11:00 cjt1991 阅读(115) 评论(0) 推荐(0) 编辑