Discussion Forum : Introduction To Methods And Streams
Question -

Which of these is method is used for writing bytes to an outputstream?

Options:
A .  put()
B .  print()
C .  printf()
D .  write()
Answer: Option B

write() and read() are the two main methods of OutputStream & InputStream respectively 

that are used for printing and reading the byte data.



Was this answer helpful ?
Next Question
Submit Your Solution hear:

Your email address will not be published. Required fields are marked *