下列哪个选项不是InputStream类中的方法?A.public abstract int read()throws IOExceptionB.public final void writeInt (int v)throws IOExceptionC.public void close()throws IOExceptionD.public int available() throws IOException

题目

下列哪个选项不是InputStream类中的方法?

A.public abstract int read()throws IOException

B.public final void writeInt (int v)throws IOException

C.public void close()throws IOException

D.public int available() throws IOException


相似考题
更多“下列哪个选项不是InputStream类中的方法?A.public abstract int read()throws IOExceptionB.publ ”相关问题
  • 第1题:

    下列选项中,哪个是FileWriter类中read()方法读取到流末尾的返回值?()

    A.0

    B.-1

    C.1

    D.无返回值


    答案:B




  • 第2题:

    下列哪个选项不是InputStream类中的方法?

    A.public abstract int read( )throws IOException

    B.public final void writeInt(int v)throws IOException

    C.pubfic void close( )throws IOException

    D.pubfic int available( )throws IOExcepfion


    正确答案:B
    解析:B中的publicfinalvoidwriteInt(intv)throwsIOException方法是OutputStream类的方法。

  • 第3题:

    下列哪个叙述是正确的?

    A.final 类可以有子类。

    B.abstract类中只可以有abstract方法。

    C.abstract类中可以有非abstract方法,但该方法不可以用final修饰。

    D.不可以同时用final和abstract修饰同一个方法。


    不可以有类继承自该类

  • 第4题:

    下面哪个不是InputStream类中的方法?

    A.int read(byte[])

    B.void flush()

    C.void close()

    D.int available()


    正确答案:B
    解析:本题考查InputStream类中的方法。lnpmstream类中包括的主要方法有:int read(byte[]),该方法从输入流中读多个字节,存入字节数组;void close()方法用来关闭输入流,并释放相关资源:int available()方法返回输入流中可读字节数:long skip(long n)方法从输入流中最多向后跳n个字节,返回实际跳过字节数。还有其他方法,都应该有所了解,选项B中void flush()并不属于InputStream类中的方法。不仅要记住有哪些方法,也要理解其作用,并用于实际编写程序中。

  • 第5题:

    下列哪个选项不是InputStream类中的方法? ( )

    A.public abstract int read()throws IOException

    B.public final void writeInt(int v)throws IOException

    C.public void close()throws IOException

    D.public int available()throws IOException


    正确答案:B