网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

"构造方法RandomAccessFile(Filefile,Stringmode)中的参数mode表示()"

  • A、读流的方法
  • B、写流的方法
  • C、读/写流的方法
  • D、流的打开方式

参考答案

更多 “"构造方法RandomAccessFile(Filefile,Stringmode)中的参数mode表示()"A、读流的方法B、写流的方法C、读/写流的方法D、流的打开方式” 相关考题
考题 下面关于构造方法的说法正确的是() A.构造方法不能被继承B.构造方法不能被重写C.构造方法不能被重载D.构造方法可以被重载

考题 RandomAccessFile类实现的接口是______和DateOutput接口。

考题 下面哪个方法在RandomAccessFile类有,而在Reader或Writer类中没有()A、voidclose()B、intread()C、setLength(longnewLength)D、以上都不是

考题 以下创建RandomAccessFile类实例对象的代码,哪些是正确的( )。 A、RandomAccessFile(newFile("D:\\itcast\\dir1\\test.java"),"rw")B、RandomAccessFile("D:\\itcast\\dir1\\test.java","r")C、RandomAccessFile("D:\\itcast\\dir1\\test.java")D、RandomAccessFile("D:\\itcast\\dir1\\test.java","wr")

考题 下列选项中,( )是FilterInputStream类构造方法的有效参数。A.无参数B.OutputStream对象C.InputStream对象D.RandomAccessFile对象

考题 正确生成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")

考题 在/home/stud1/wang目录下有一文件file,使用()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中。 A.cat filefilE.copyB.cat filefilE.copyC.cat filefilE.copyD.cat filefilE.copy

考题 下列关于构造方法的说法正确的是() A、构造方法不能被继承B、构造方法不能被重写C、构造方法不能被重载D、构造方法可以被重载

考题 构造方法可以分为()A、有参构造方法B、无参构造方法C、多参构造方法D、只有一种

考题 将一个RandomAccessFile对象中的文件指针移动到文件中的一个确定位置,应调用方法()A、skipBytes()B、seek()C、moveBytes()D、seekBytes()

考题 RandomAccessFile类所实现的接口有()和(),调用它的()方法可以移动文件位置指针,以实现随机访问。

考题 要从文件" file.dat"文件中读出第10个字节到变量C中,下列哪个方法适合? ()A、 FileInputStream in=new FileInputStream("file.dat"); in.skip(9); int c=in.read();B、 FileInputStream in=new FileInputStream("file.dat"); in.skip(10); int c=in.read();C、 FileInputStream in=new FileInputStream("file.dat"); int c=in.read();D、 RandomAccessFile in=new RandomAccessFile("file.dat"); in.skip(9); int c=in.readByte();

考题 以下哪些是合法的构造RandomAccessFile对象的代码()。A、RandomAccessFile(new File("D:////myex//dir1//..//test.java"),"rw")B、RandomAccessFile("D:////myex//test.java","r")C、RandomAccessFile("D:////myex//test.java")D、RandomAccessFile("D:////myex//test.java","wr")

考题 简述File类的应用,它与RandomAccessFile类有何区别。

考题 要从文件"file.dat"中读出第10个字节到变量c中,下列哪个方法适合?()A、FileInputStream in=new FileInputStream("file.dat");in.skip(9);intc=in.read()B、FileInputStream in=new FileInputStream("file.dat");in.skip(10);intc=in.read()C、FileInputStream in=new FileInputStream("file.dat");intc=in.read()D、RandomAccessFile in=new RandomAccessFile("file.dat");in.skip(9);intc=in.readByte()

考题 在/home/stud1/wang目录下有一文件file,使用()可实现在后台执行命令,此命令将file文件中的内容输出到file.copy文件中。A、cat filefilE.copyB、cat filefilE.copyC、cat filefilE.copyD、cat filefilE.copy

考题 单选题RandomAccessFile类的()方法可用于从指定流上读取整数。A readIntB readLIneC seekD close

考题 多选题构造方法可以分为()A有参构造方法B无参构造方法C多参构造方法D只有一种

考题 填空题RandomAccessFile类所实现的接口有()和(),调用它的()方法可以移动文件位置指针,以实现随机访问。

考题 问答题简述File类的应用,它与RandomAccessFile类有何区别。

考题 单选题RandomAccessFile类的()方法可用于设置文件定位指针在文件中的位置。A readIntB readLIneC seekD close

考题 单选题RandomAccessFile类的()方法可用于从指定流上读取字符串。A readIntB readLIneC seekD close

考题 单选题"构造方法RandomAccessFile(Filefile,Stringmode)中的参数mode表示()"A 读流的方法B 写流的方法C 读/写流的方法D 流的打开方式

考题 多选题以下哪些是合法的构造RandomAccessFile对象的代码()。ARandomAccessFile(new File(D:////myex//dir1//..//test.java),rw)BRandomAccessFile(D:////myex//test.java,r)CRandomAccessFile(D:////myex//test.java)DRandomAccessFile(D:////myex//test.java,wr)

考题 填空题RandomAccessFile所实现的接口是()和DataOutput接口.