Lets assume that I have a variable:
List<String> myList;
Is there a difference between these two lines?
myList = new ArrayList<>();
myList = new ArrayList<String>();
I guess both does the same on compilation, but still I'm not sure.
Thanks in advance