Java Hashtable putAll(Map t) Example

The put(K key, V value) method of java.util.Hashtable class associates the specified value with the specified key in this map. If the map previously contained a mapping for the key, the old value is replaced whereas putAll(Map<? extends K,? extends V> t) method copies all of the mappings from the specified map to this map. These mappings will replace any mappings that this map had for any of the keys currently in the specified map.
[Read more…]