单项选择题

File a=new File("D:\\data\lianxi.txt");如果D盘中没有data文件夹,也没有lianxi.txt,则执行a.createNewFile();程序会( )。
A、在D盘中创建data文件夹
B、在D盘中创建lianxi.txt
C、在D盘中创建data文件夹,并且在data文件夹中创建lianxi.txt
D、报出IOException

题目列表

你可能感兴趣的试题

问答题

English and German have relatively large vowel inventories.What reason does the discussion provide for this?

答案: A.These languages are relatively old and had more time to de...
微信扫码免费搜题