问答题简述File类的应用,它与RandomAccessFile类有何区别。
问答题
简述File类的应用,它与RandomAccessFile类有何区别。
参考解析
解析:
暂无解析
相关考题:
下面哪个方法在RandomAccessFile类有,而在Reader或Writer类中没有()A、voidclose()B、intread()C、setLength(longnewLength)D、以上都不是
正确生成RandomAccessFile对象的语句的是A.File f=new File("readFile"); RandomAccessFile raF=new RandomAccessFile(f);B.RandomAccessFile raF=new RandomAccessFile(d:\\mydir\\File3.txt,"rw");C.RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");D.RandomAccessFile raF=new RandomAccessFile("readwriteFile",rw);
正确生成RandomAccessFile对象的语句是 ( )A.File f=new File("readFile");B.RandomAccessFile raF=new RandomAcccssFile(d:\mydir\File3.txt,"rw");C.RandomAccessFile raF=new RandomAccessFile("readwriteFile","rw");D.RandomAccessFile raF=new RandomAccessFite("readwriteFile",rw)
在下列程序的横线处填入正确的语句,实现RandomAccessFile类使用。 package ch1; import java. io. *; public class ex27 { public static void main(String args[] ) { try { RandomAccessFile in = new in.close ( ); } catch (Exception e) { e.printStackTrace (); } } }A.RandomAccessFileC"ch1/file.dat", "read")B.RandomAccessFile("r", "ch1/file.dat")C.RandomAccessFile("ch1/file.dat" , "r")D.RandomAecessFile("read", "ch1/file.dat")
下面的说法正确的是()A、InputStream与OutputStream都是抽象类B、Reader与Writer不是抽象类C、RandomAccessFile是抽象类D、File类是抽象类
问答题古今字有何特点?它与异体字有何区别?