Is there any technically difference between below two lines?
List<com.xyz.Util> utilList = new ArrayList<com.xyz.Util>();
List<com.xyz.Util> utilList = new ArrayList<>();
I know the first one is typed and the second is not but technically both are same? This might be a trivial question but if you can explain in detail with example would be great. what are the advantages of using one over the other.