Home / CSE MCQs / JAVA MCQs :: Input Output Streams - Java

CSE MCQs :: JAVA MCQs

  1. Which of these class is implemented by FilterInputStream class?
  2. A.
    InputStream
    B.
    BufferedInputStream
    C.
    FileInputStream
    D.
    BufferedFileInputStream

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of these class contains the methods print() & println()?
  4. A.
    System
    B.
    System.out
    C.
    BUfferedOutputStream
    D.
    PrintStream

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of these methods can be used to writing console output?
  6. A.
    print()
    B.
    println()
    C.
    write()
    D.
    All of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of these class is used to create an object whose character sequence is mutable?
  8. A.
    String()
    B.
    StringBuffer()
    C.
    Both of the mentioned
    D.
    None of the mentioned

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Which of these method of class StringBuffer is used to reverse sequence of characters?
  10. A.
    reverse()
    B.
    reverseall()
    C.
    Reverse()
    D.
    reverseAll()

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of these classes are used by character streams output operations?
  12. A.
    InputStream
    B.
    Writer
    C.
    ReadStream
    D.
    InputOutputStream

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following statement is correct?
  14. A.
    reverse() method reverses all characters.
    B.
    reverseall() method reverses all characters.
    C.
    replace() method replaces first occurrence of a character in invoking string with another character.
    D.
    replace() method replaces last occurrence of a character in invoking string with another character.

    View Answer

    Workspace

    Discuss Discuss in Forum