当前位置:SCJP程序员认证考试题库

问题:

[多选]

10. class MakeFile { 
11. public static void main(String[] args) { 
12. try { 
13. File directory = new File(”d”); 
14. File file = new File(directory,”f”); 
15. if(!file.exists()) { 
16. file.createNewFile(); 
17. } 
18. } catch (IOException e) { 
19. e.printStackTrace 
20. } 
21. } 
22. } 
The current directory does NOT contain a directory named “d.” Which three are true?()

A .  Line 16 is never executed.
B .  An exception is thrown at runtime.
C .  Line 13 creates a File object named “d”.
D .  Line 14 creates a File object named “f‟.
E .  Line 13 creates a directory named “d” in the file system.
F .  Line 16 creates a directory named “d” and a file “f”  within it in the file system.
G .  Line 14 creates a file named "f " inside of the directory named “d” in the file system.

线性的需求曲线的上半部分的需求价格弹性绝对值总是大于1。 应急预案体系应针对各级各类(),制订专项应急预案和现场应急处置方案。 可能发生的事故。 部分危险源。 所有危险源。 可能发生的事故和所有危险源。 古代天子与后妃乘坐一种富丽堂皇的大马车,被称作() 栈车。 轿车。 路。 轩。 历代信访制度的内容有哪些? 油罐进行明火修复前必须做哪些准备工作?

10. class MakeFile { 
11. public static void main(String[] args) { 
12. try { 
13. File directory = new File(”d”); 
14. File file = new File(directory,”f”); 
15. if(!file.exists()) { 
16. file.createNewFile(); 
17. } 
18. } catch (IOException e) { 
19. e.printStackTrace 
20. } 
21. } 
22. } 
The current directory does NOT contain a directory named “d.” Which three are true?()

参考答案:

  参考解析

本题暂无解析

在线 客服