Multiple choice

Which of the following methods in OutputStream class finalizes the output state so that the buffers are cleared?

  1. close()

  2. write()

  3. flush()

  4. reset()

  5. read()

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This method of OutputStream class finalizes the output state so that the buffers are cleared.