I've come across a question of best practice. Which option is better:
List list = new ArrayList<String>();
or
List<String> list = new ArrayList<>();
?
Is there any down side of using any of these? Or writing List<String> list = new ArrayList<String>()
;