爪哇 Java集合 2021-08-15 HashMap与HashTable的区别? HashMap没有考虑同步,是线程不安全的;Hashtable使用了synchronized关键字,是线程 安全的; HashMap允许K/V都为null;后者K/V都不允许为null;