G

Geetam • 6.04K Points
Tutor III

Q. Which method is used to write an array of byte to the current output stream?

  • (A) public void write(int)throws IOException
  • (B) public void write(byte[])throws IOException
  • (C) public void flush()throws IOException
  • (D) public void close()throws IOException
  • Correct Answer - Option(B)
  • Views: 145
  • Filed under category JAVA

Explanation by: Geetam
public void write(byte[])throws IOException is used to write an array of byte to the current output stream.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics