ArrayList和HashMap是异步的,Vector和HashTable是同步的,Vector和HashTable是线程安全的,ArrayList和HashMap不是线程安全的,因为同步需要花费机器时间,所以Vector和HashTable的执行效率要低于ArrayList和HashMap
转载于:https://www.cnblogs.com/ubiwind/archive/2012/12/20/2826170.html
ArrayList和HashMap是异步的,Vector和HashTable是同步的,Vector和HashTable是线程安全的,ArrayList和HashMap不是线程安全的,因为同步需要花费机器时间,所以Vector和HashTable的执行效率要低于ArrayList和HashMap
转载于:https://www.cnblogs.com/ubiwind/archive/2012/12/20/2826170.html