Back
For new applications written in Java 7, is there any reason to use a java.io.File object any more or can we consider it deprecated?
I believe a java.nio.file.Path can do everything a java.io.File can do and more.
Check this article about more info - http://www.oracle.com/technetwork/articles/javase/nio-139333.html
Basically file.Path will be the way to go from now on but as is widely known Java people tend to keep back-compatibility so I guess that's why they have left it.
31k questions
32.8k answers
501 comments
693 users