当前位置: X题卡 > 所有题目 > 题目详情

利用File对象可以判断的是

查看本题答案

你可能感兴趣的试题

File f=new File("readFile"); RandomAccessFile raF=newRandomAeeess Filel(;  RandomAccessFile raF=new RandomAcccssFile(d:/mydir/File3.txt,"rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");  RandomAccessFile raF=new RandomAccessFite("readwriteFile",r  
File myFile;  myFile=new File("mulu/file");  File myFile=new file( );  myFile=new File("/mulu","filel");  File myDir=new file("/mulu");  myFile=new File(Dir"filel");  
File myFile; myFile=new File("mulu/file");  File myFile=new File();  myFile=new FileC/mulu","filel");  File myDir=new file("/mulu"); myFile=new File(Dir, "filer');  
File f=new File("readFile"); RandomAccessFile raF=new RandomAccessFile(;  RandomAccessFile raF=new RandomAccessFile(d:/mydir/File3.txt,"rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");  RandomAccessFile raF=new RandomAceessFile("readwriteFile" ,r;  
File dirObject=new File("d:/mydir");  File fileObject1:newFile(Filel.txt);  File fileObject1:newFile("Filel.mt");  File fileO均ect2:newFile("d:knydir",File2.txt);  
File类是java. io. file包中的非流类  File类以系统相关的方式描述文件对象的属性  File类不能读写文件  File类不能操作文件属性  
File f=new File("readFile");
RandomAccessFile raF=new RandomAccessFile(f);  
RandomAccessFile raF=new RandomAccessFile(d://mydir//File3.txt,"rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile",rw);  
利用常对象可以调用任何不改变对象值的成员函数  利用常对象只能调用静态成员函数  常对象的成员都是常成员  利用常对象只能调用它的常成员函数  
File f=new File("readFile");
RandomAccessFile raF=new RandomAccessFile(f);  
RandomAccessFile raF=new RandomAccessFile(d:/mydir/File3.txt,"rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");  RandomAccessFile raF=new RandomAceessFile("readwriteFile" ,rw);  
File myFile;

  myFile=new File("mulu/file");

  
File myFile=new file( );
  
myFile=new File("/mulu","filel");
  
File myDir=new file("/mulu");

  myFile=new File(Dir"filel");  
Java系统的标准输入对象是Systein  打开一个文件时不可能产生IOException  使用File对象可以判断一个文件是否存在  使用File对象可以判断一个目录是否存在  
File dirObject=new File("d:/mydir");  File fileObject1:newFile(Filetx;  File fileObject1:newFile("Filemt");  File fileO均ect2:newFile("d:knydir",File2.tx;  
cp file1file2  mv file1file2  ls file1>file2  ll file1>file2  
创建子目录  荻得文件长度  删除文件  判断文件的存在  
File f=new File("readFile"); RandomAccessFile raF=new RandomAccessFile(;  RandomAccessFile raF=new RandomAccessFile(d://mydir//File3.txt,"rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile",r;  
File类是jav i file包中的非流类  File类以系统相关的方式描述文件对象的属性  File类不能读写文件  File类不能操作文件属性  
File myFile;
myFile=new File("mulu/file");  
File myFile=new File();  myFile=new FileC/mulu","filel");  File myDir=new file("/mulu");
myFile=new File(Dir, "filer');  
Java系统的标准输入对象是System.in  打开一个文件时不可能产生IOException  使用File对象可以判断一个文件是否存在  使用File对象可以判断一个目录是否存在  
File f=new File("readFile");  RandomAccessFile raF=newRandomAeeess Filel(f);B) RandomAccessFile raF=new RandomAcccssFile(d:/mydir/File3.txt,"rw");  RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");  RandomAccessFile raF=new RandomAccessFite("readwriteFile",rw)  

热门试题

更多