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

问题:

[单选]

Which gets the name of the parent directory file “file.txt”?()

A .  String name= File.getParentName(“file.txt”);
B .  String name= (new File(“file.txt”)).getParent();
C .  String name = (new File(“file.txt”)).getParentName();
D .  String name= (new File(“file.txt”)).getParentFile();
E .  Directory dir=(new File (“file.txt”)).getParentDir();  String name= dir.getName();

在美国有一个调査,有()的创业者因为畏惧失败而没有创业。 99%。 98%。 97%。 96%。 维修、动火作业期间需要对可燃气体浓度进行检测的作业场所,应携带()。 可燃气体检测仪。 可燃气体报警器。 对讲机。 手机。 变压器的虑油和换油工作属于其大修项目。 变压器着火时,应立即断开电源,停止油泵,停运冷却器及排风扇,并迅速采取灭火措施,防止火势蔓延。 磁场是由运动的电荷产生的。

Which gets the name of the parent directory file “file.txt”?()

参考答案:

  参考解析

本题暂无解析

在线 客服