Home / Programming MCQs / JAVA MCQs / Question

G

Geetam • 5.85K Points
Tutor III

Q. Which method is used to write a 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

Explanation:

public void write(int)throws IOException is used to write a byte to the current output stream.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.