标题HashMap 和 HashTable的区别 1、HashMap 线程不同步,HashTable线程同步;HashMap没有线程同步效率比较快; 2、HashMap 允许有空值,HashTable不允许有空值; 3、HashMap 数组默认大小是16,增长以2的指数倍增长;HashTable默认值是11,增长以old*2+1增长; 4、HashMap 继承Dictionary类,HashTable继承继承AbstractMapl类;