我正在准备 Java SE 6 测试,其中一个主题是“Java I/O”。我开始看官方教程,但是到了File I/O (Featuring NIO.2)它说
Note: This tutorial reflects the file I/O mechanism introduced in the JDK 7 release. The Java SE 6 version of the File I/O tutorial was brief, but you can download the Java SE Tutorial 2008-03-14 version of the tutorial which contains the earlier File I/O content.
我访问了该链接并下载了教程(日期为2010-10-18,但是...),但在同一页面上却显示...
This section was updated to reflect features and conventions of the upcoming Java SE 7 release. You can download the current JDK7 snapshot from java.net. The Java SE 6 version of the File I/O tutorial was brief, but you can download the Java SE Tutorial 2008-03-14 version of the tutorial which contains the earlier File I/O content.
您能帮我找到 Java 6 的正确文档吗?或者我可以完全跳过该部分?我不想最终混淆 Java 6 和 Java 7 功能
最佳答案
Could you help me to find the correct one for Java 6?
通过。 (题外话)
Or I can just totally skip that section?
不。我建议你根据Java 7教程进行修改。
I don't want to end mixing up Java 6 and Java 7 features.
我不会担心这个。如果这是一个问题,您可以:
检查javadoc以查看Java 7中是否添加了相关的类和方法。
阅读有关 I/O 更改的 Java 7“新增功能”文档。
关于Java I/O : differences between Java SE 6 and 7?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29325293/