why i can't create a Map of String and generic object

Viewed 18865

I am trying to do something like this

  final Map<String, ? extends Object> params = new HashMap<String, ? extends Object>();

but java compiler complaining about that "cannot instantiate the type HashMap();

whats wong with it..?

2 Answers
Related