一,HashMap是非线程安全,HashTabale是线程安全; 二,HashMap的键和值都允许有null值存在,而HashTable不行 三,因为线程的安全问题,HashMap效率比HashTable的要高。