不废话总结:hashmap的底层是哈希表,而哈希表由数组加链表组成,在对hashmap进行put(新增或修改)或者remove(删除)动作时进行加锁操作,所以concurrenthashmap是线程安全的