Tagged: close 2016-08-12 do we need to call flush()? can’t we just call close()? You can find your own answer from following links. AutoCloseable#close() Closeable#close() InputStream#close() Writer#close() flush() will never hurt anyone and it has its own purposes. DON’T YOU EVER SAY THAT close() WILL DO flush() FOR YOU!