网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
RandomAccessFile类的()方法可用于从指定流上读取整数。
A
readInt
B
readLIne
C
seek
D
close
参考答案
参考解析
解析:
暂无解析
更多 “单选题RandomAccessFile类的()方法可用于从指定流上读取整数。A readIntB readLIneC seekD close” 相关考题
考题
下面哪个方法在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")
考题
从对象流中读取对象是使用ObjectInputStream类的( )方法。A.writeObject ()B. readObject )C. ObjectOutputStreamD. DataOutput
考题
下列选项中,( )是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);
考题
从对象流中读取对象是使用ObiectlnputStream类中的方法( )。A.readObject()B.rcadByte()C.readData()D.readInputObject()
考题
下列说法中错误的一项是______。A.readExtemal()方法用于从对象流读取通过writeExtemal()方法写入的对象的数据B.实现完全串行化的类必须实现writeExtemal()方法C.实现完全串行化的类必须定义一个具有public访问权限的不带参数的构造方法D.writeExtemal()方法的访问权限是private
考题
下列关于System类中getProperties()方法的描述中,正确的是?()
A、getProperties()方法用于获取当前的操作系统的属性B、getProperties()方法用于获取当前JVM的属性C、getProperties()方法用于获取指定键指示的操作系统属性D、getProperties()方法用于获取指定的JVM的属性
考题
对于FileInputStream类,下列哪一项是不正确的()A、从InputStream类继承B、不支持InputStream的有些方法C、不适合读取字符文件,适合读取字节文件D、能实现文件的倒序读取
考题
多选题您正在定义一个名为MyClass的类,它包含若干个子对象。MyClass包含一个名为ProcessChildren的方法,该方法对子对象执行操作。MyClass对象将是可序列化的对象。您需要确保在重建MyClass对象及其所有子对象之后执行ProcessChildren方法。您应该执行哪两项操作?()A将OnDeserializing属性应用于ProcessChildren方法。B指定MyClass实现IDeserializationCallback接口。C指定MyClass从ObjectManager类继承。D将OnSerialized属性应用于ProcessChildren方法。E创建一个调用ProcessChildren的GetObjectData方法。F创建一个调用ProcessChildren的OnDeserialization方法。
考题
单选题对于FileInputStream类,下列哪一项是不正确的()A
从InputStream类继承B
不支持InputStream的有些方法C
不适合读取字符文件,适合读取字节文件D
能实现文件的倒序读取
考题
单选题DataReader对象的()方法用于从查询结果中读取行。A
NextB
ReadC
NextResultD
Write
热门标签
最新试卷