gudii9
asked on
HashMap declaration
what is difference between below threee HashMap declarations
1.HashMap<String,Integer> map=new HashMap<String,Integer>();
2.Map<String,Integer> map=new HashMap<String,Integer>();
3.HashMap<String,int> map=new HashMap<String,int>();
why i cannot pass primitive to generics?
please advise
1.HashMap<String,Integer> map=new HashMap<String,Integer>();
2.Map<String,Integer> map=new HashMap<String,Integer>();
3.HashMap<String,int> map=new HashMap<String,int>();
why i cannot pass primitive to generics?
please advise
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
No OP input. No other expert comment. My answer in any case is correct.