5

Possible Duplicate:
What are the reasons why Map.get(Object key) is not (fully) generic

Why for Map<K,V>, the get() is defined with an Object parameter:

V get(Object key) 

and not a generic paramter:

V get(K key) 

?

Community
  • 1
  • 1
Asaf
  • 2,480
  • 4
  • 25
  • 33

0 Answers0