试题详情
- 多项选择题 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.
- B,C,D
关注下方微信公众号,在线模考后查看
热门试题
- Which of
- 如何创建包?在什么情况下需要在程序里创建
- 11.public void genNu
- Which statemen
- Given a p
- 下面类中属于字节I/O流的是()
- For a give
- public classYippee{
- Place the
- 对于如下代码,描述正确的是哪项?()&
- A Company.com&
- 现有: class&ens
- When adding
- 现有: String&en
- 以下关于支持Java运行平台的叙述,哪项
- String对象中的值是不可变的
- 在Swing中,一下列出的面板的作用中,
- 表格约束的“anchor”属性有什么作用
- What is th
- 在创建JBuilder工程的步骤中,下面