题目详情
单选题 如果在一台 PC 机的c:\source目录运行如下代码: import java.io.*; class Path { public static void main(String[] args) throws Exception { File file = new File("Ran.test"); System.out.println(file.getAbsolutePath()); } } 则可能的输出结果为
A. Ran.test
B. source\Ran.test
C. c:\source\Ran.test
D. c:\source
学科:[共享课]Java程序设计(华东交通大学)
时间:2023-05-08 07:13:33
相关题目
相关作业