Which of these is method is used for writing bytes to an outputstream?
A. put()
B. print()
C. printf()
D. write()
Answer:A
Which of these is method is used for writing bytes to an outputstream?
A. put() B. print() C. printf() D. write()
Explanation: write() and read() are the two main methods of OutputStream & InputStream respectively that are used for printing and reading the byte data.