分为三点比较: Hashtable: 特征很像HashMap HashMap不是同步的,线程不安全,但是效率高,如果不需要多线程操作时HashMap当然首当其冲。HashMap可以将null作为键和值,但Hashtable都不能。Hashtable是早起的Map,现在几乎都使用HashMap。