移动端

  • 题王微信公众号

    题王微信公众号

    微信搜“题王网”真题密题、最新资讯、考试攻略、轻松拿下考试

多选题

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?()

发布日期:2020-04-10

10. class MakeFile {  11. public static void main(...
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.

题王网让考试变得更简单

扫码关注题王,更多免费功能准备上线!

此试题出现在

CMS专题

CMS专题

去刷题
热门试题热门资讯 相关试题

暂无相关推荐~