Possible Duplicate:
What are the reasons why Map.get(Object key) is not (fully) generic
From the JDK Documentation, the put method:
public V put(K key, V value)
but, the get method:
public V get(Object key)
Any ideas?
Note: In some code I inherited, there is a bug, where someone used a String as a parameter to the get method of a Hashtable with an Integer key.