What is the difference between makin an ArrayList these two difference ways? i know the method will be the same and both will essentially do the same thing. but why two ways to initializing arraylist?
ArrayList<String> list = new ArrayList<String>();
List<String> myList = new ArrayList<String>();