Home / CSE MCQs / JAVA MCQs :: Discussion

Discussion :: JAVA MCQs

  1. Which of these is method is used for writing bytes to an outputstream?
  2. A.
    put()
    B.
    print()
    C.
    printf()
    D.
    write()

    View Answer

    Workspace

    Answer : Option B

    Explanation :

    write() and read() are the two main methods of OutputStream & InputStream respectively that are used for printing and reading the byte data.


Be The First To Comment