Java: Path vs File

后端 未结 7 1102
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 10:49

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

7条回答
  •  感情败类
    2020-11-27 11:26

    Yes, but many existing APIs, including Java7's own standard APIs, still work only with File type.

提交回复
热议问题