Home » JAVA Programming » Interfaces » Question
  1. What is the use of Flushable interface?
    1. Flushes this stream and starts reading again
    2. Flushes this stream by writing any buffered output to the underlying stream
    3. Flushes this stream and throws FlushException
    4. Flushes this connection and closes it
    5. None of these
Correct Option: B

Flushable interface provides flush() method which Flushes this stream by writing any buffered output to the underlying stream.



Your comments will be displayed only after manual approval.