I have three lines of code :
1) List<String> list = new ArrayList<String>();
Which does not produce any error
but when I write following line of code
2)Map<String, List<String>> map = new HashMap<String, ArrayList<String>>();
I get following Error
Type mismatch: cannot convert from HashMap<String,ArrayList<String>> to Map<String,List<String>>
3)Map<String,String> d= new HashMap<String,String>();
This line does not produce any error
I want to know why
(2) line shows me Error.
Thanks in Advance.:)