What is the difference between doing this
strings.toArray(new String[]{});
and this
strings.toArray(String[]::new);
They both work but what is the benefit of choosing the latter over the former?