ArrayList與HashMap的區別

ArrayList,HashMap2008-10-11 18:51List和Map是接口,ArrayList和HashMap分別是它們的實現類. ArrayList和HashMap是異步的,Vector和HashTable是同步的,因此Vector和HashTable是線程安全的,而 ArrayList和HashMap並非線程安全的。由於同步須要花費機器時間,因此Vector和HashTable的
相關文章
相關標籤/搜索