SyntaxFix
Write A Post
Hire A Developer
Questions
Definitely the second one. In the first one, you use a constant empty List<?> and then convert it to a File[], which requires to create an empty File[0] array. And that is what you do in the second one in one single step.
List<?>
File[]
File[0]