单选题对于FileInputStream类,下列哪一项是不正确的()A从InputStream类继承B不支持InputStream的有些方法C不适合读取字符文件,适合读取字节文件D能实现文件的倒序读取
单选题
对于FileInputStream类,下列哪一项是不正确的()
A
从InputStream类继承
B
不支持InputStream的有些方法
C
不适合读取字符文件,适合读取字节文件
D
能实现文件的倒序读取
参考解析
解析:
暂无解析
相关考题:
下列InputStream构造方法正确的是()。 A、InputStream in=new FileReader(“file.txt”)B、InputStream in=new FileInputStream(“file.txt”)C、InputStream in=new InputStreamFileReader (“file.txt”,“read”)D、FileInputStream in=new FileReader(new File(“file.txt”))
下列( )不是FilterlnputStream的子类。A.CheckedInputStreamB.BufferedInputStreamC.PushbackInputStreamD.FileInputStream
在读字符文件emplyee.dat时,使用该文件作为参数的类是( )。A.BufferReaderB.DataInputStreamC.DataOutputStreamD.FileInputStream
要从“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( );
对于FileInputStream类,下列哪一项是不正确的()A、从InputStream类继承B、不支持InputStream的有些方法C、不适合读取字符文件,适合读取字节文件D、能实现文件的倒序读取
要从文件" 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();
对于ByteArrayInputStream类,下列哪一项是不正确的()A、和InputStream类有很大的不同B、有四个成员变量:buf、count、mark、posC、可以重读部分输入流数据D、可以对输入流数据字节数计数
对于键盘事件类KeyEvent,下列哪一项是不正确的()A、监听器为KeyListenerB、监听器有三个抽象方法,处理不同的键盘事件C、主要有键按下,键抬起,击键(按下+抬起)三类事件D、对一次击键,监听器只能选择处理一种事件
对于鼠标事件MouseEvent,下列哪一项是不正确的()A、有两类监听器,MouseListener和MouseMotionListenerB、MouseListener处理鼠标点击事件C、一次鼠标操作,只能触发两类监听器中的一种D、MouseMotionListener处理鼠标移动事件
下列属于文件输入输出类的是()A、 FileInputStream和FileOutputStreamB、 BufferInputStream和BufferOutputStreamC、 PipedInputStream和PipedOutputStreamD、 以上都是
要从文件"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()
单选题关于流(Stream)相关的类,下列哪一项是不正确的()AInputStream和OutputStream类是用来处理字节(8位)流的BReader和Writer类用来处理字符(16位)流C各个类之间相互独立,没有关联DFile类则用来处理文件
单选题关于菜单相关类的继承结构,下列哪一项是不正确的()AMenu是MenuItem的子类BMenuBar是MenuComponent的子类CPopupMenu是Menu的子类DCheckboxMenuItem是Menu的子类
单选题要从文件" 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();
单选题对于FileInputStream和FileOutputStream类,下面哪个方法不会产生IOException异常()A二者的构造函数Bread()Cclose()Dwrite()
单选题对于ByteArrayInputStream类,下列哪一项是不正确的()A和InputStream类有很大的不同B有四个成员变量:buf、count、mark、posC可以重读部分输入流数据D可以对输入流数据字节数计数
单选题对于鼠标事件MouseEvent,下列哪一项是不正确的()A有两类监听器,MouseListener和MouseMotionListenerBMouseListener处理鼠标点击事件C一次鼠标操作,只能触发两类监听器中的一种DMouseMotionListener处理鼠标移动事件
单选题下列属于文件输入输出类的是()A FileInputStream和FileOutputStreamB BufferInputStream和BufferOutputStreamC PipedInputStream和PipedOutputStreamD 以上都是