1.

Does close() implicitly flush() the stream.(a) True(b) FalseThis question was posed to me during an interview.I need to ask this question from AutoCloseable, Closeable and Flushable Interfaces in portion Session Management, JSP & API of Java

Answer»

The correct ANSWER is (a) True

For EXPLANATION I WOULD say: CLOSE() CLOSES the stream but it flushes it first.



Discussion

No Comment Found

Related InterviewSolutions