单项选择题

文件操作中,语句public String getPath()的作用是( )。

A.得到文件对象的父路径名
B.得到文件的上一级目录名
C.得到一个包含路径的文件名
D.得到文件路径名字符串
<上一题 目录 下一题>
热门 试题

单项选择题
下面程序段的输出结果是( )。 public class Test public static void main(String args[]) int a, b; for(a=1, b=1; a<=100; a++) if(b>=10) break; if (b%2==1) b+=-2; continue; System.out.println(a);
A.5
B.6
C.7
D.101
单项选择题
已知有下面的类说明: pubic class Test4 private float f=1.0f; int m=12; static int n=1; public static void main(String args[]) Test4 e=new Test4(); 在main()方法中,下面( )使用是正确的。
A.f
B.this.n
C.Test4.m
D.Test4.f
相关试题
  • 编写同时具有applet与application的特征的...
  • 抽象窗口工具包 【13】 提供用于所有Ja...
  • applet生命周期中的关键方法包括: 【14...
  • Java对象串行化技术,主要是通过叫Objectln...
  • 线程在生命周期中要经历5种状态,分别是新...