List和HashMap Vector Hashtable

尽量采用List和HashMap,rather than Vector&Hashtable.

 

Vector是有信号量的,可以同步锁,ArrayList没有,所以相对来说ArrayList的存取速度比Vector快。
同理HashMap比Hashtable快

posted @ 2009-12-23 01:01  Fan Zhang  阅读(131)  评论(0编辑  收藏  举报