Wrapping a HashMap in Collections.synchronizedMap locks the entire table on every get and put. ConcurrentHashMap achieves massive read/write scalability through lock-free volatile reads, CAS on empty buckets, synchronized per-bin heads, striped CounterCell[] sizes and cooperative multi-threaded resizing.
More lessons in Complete Core Java