"构造方法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类的()方法可用于从指定流上读取整数。AreadIntBreadLIneCseekDclose

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

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

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

单选题RandomAccessFile类的()方法可用于设置文件定位指针在文件中的位置。AreadIntBreadLIneCseekDclose

单选题RandomAccessFile类的()方法可用于从指定流上读取字符串。AreadIntBreadLIneCseekDclose

单选题"构造方法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接口.