Java: Path vs File

后端 未结 7 1119
隐瞒了意图╮
隐瞒了意图╮ 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:42

    can we consider it deprecated?

    No, you can't consider it deprecated unless and until it is so marked in the File Javadoc.

提交回复
热议问题