Possible Duplicate:
ArrayList declaration Java
In Java, why is an ArrayList often declared using a List?
List<String> strList1 = new ArrayList<String>();
ArrayList<String> strList2 = new ArrayList<String>();
I am not able to understand the difference between these two. Is one better than the other? or have a specific use?