Tuesday, 27 August 2013

Generic not working

Generic not working

Why does the following line of code give an error in HashMap? It is not
taking the wild card in the right hand side of the assignment.
Map<String,?> map=new HashMap<String,?>();

No comments:

Post a Comment