Files and I/O


  1. Which of these methods can be used to writing console output?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    write(), println(), print()


  1. Which of these class contains the methods print() & println()?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    print() and println() are defined under the class PrintStream, System.out is the byte stream used by these methods .



  1. Which of these class is implemented by FilterInputStream class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    FileInputStream implements InputStream.


  1. Which of these class is used to read characters and strings in Java from console?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    BufferedReader



  1. Which of these is used to read a string from the input stream?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    read()