ArrayList与HashMap的区别

ArrayList,HashMap2008-10-11 18:51List和Map是接口,ArrayList和HashMap分别是它们的实现类. ArrayList和HashMap是异步的,Vector和HashTable是同步的,因此Vector和HashTable是线程安全的,而 ArrayList和HashMap并非线程安全的。由于同步须要花费机器时间,因此Vector和HashTable的
相关文章
相关标签/搜索