InterviewSolution
Saved Bookmarks
| 1. |
What is the use of Flushable interface?(a) Flushes this stream by writing any buffered output to the underlying stream(b) Flushes this stream and starts reading again(c) Flushes this connection and closes it(d) Flushes this stream and throws FlushExceptionI got this question during an online exam.I want to ask this question from AutoCloseable, Closeable and Flushable Interfaces topic in portion Session Management, JSP & API of Java |
|
Answer» CORRECT answer is (a) Flushes this stream by writing any BUFFERED output to the underlying stream The BEST EXPLANATION: Flushable interface provides flush() method which Flushes this stream by writing any buffered output to the underlying stream. |
|