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 c
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?
This is a bit like saying: "should Napoleon invade Russia, or are these Brussels sprouts really tasty?"
As to the second part of the question, you can indeed consider it deprecated. As of January 2018, it isn't deprecated. But there's nothing to stop you considering it so. Whether that will procure you any advantage in this life or the next is impossible to say.