Home » JAVA Programming » Files and I/O » Question
  1. Which of these method(s) is/are used for writing bytes to an outputstream?
    1. printf()
    2. print() and write()
    3. write() and read()
    4. put()
    5. None of these
Correct Option: B

write() and print() are the two methods of OutputStream that are used for printing the byte data.



Your comments will be displayed only after manual approval.