单项选择题
下面创建一个新文件对象方法错误的是( )。
A.File myFile;
myFile=new File("mulu/file");
B.File myFile=new File();
C.myFile=new FileC/mulu","filel");
D.File myDir=new file("/mulu");
myFile=new File(Dir, "filer');
点击查看答案
<上一题
目录
下一题>
热门
试题
单项选择题
JDK中提供的文档生成器是( )。
A.java.exe
B.javap.exe
C.javadoc.exe
D.javaprof.exe
点击查看答案
单项选择题
下列语句输出结果为( )。 public class test public static void main (String args[]) int a=-67,b=116,c=78; int e=~c>>2&(al~b); System.out.println(e);
A.70
B.84
C.65
D.80
点击查看答案
相关试题
关于下面的程序段,说法正确的是( )。 ...
Java程序的执行过程中用到一套JDK工具,其...
自定义的异常类可从下列( )类继承。
在读字符文件Employee.dat时,使用该文件...
假设有下列声明语句: int i,j; float...