赞题库-背景图
单项选择题

下列生成文件对象的语句正确的是______。

A.File dirObject=new File("d:\mydir");
B.File fileObject1:newFile(Filel.txt);
C.File fileObject1:newFile("Filel.mt");
D.File fileO均ect2:newFile("d:knydir",File2.txt);