Closeable Flushable Java

Closeable and Flushable interfaces were introduced with JDK 1.5 version and part of java.io package. 1. Closeable interface (of Closeable Flushable Java) The Closeable interface includes only one abstract method, close(). When close() method is called, the system resources held by the stream object are released and can be used by other part of the …

Closeable Flushable Java Read More »