I need to know what is exact difference between flush and close function in Java?
And When the data is dumped into a file during writing of file?
Please prov
flush() flushes content of buffer to destination.And you can write something again into the stream.close() flushes content to destination and closes the stream. After close() you can't write anything anymore.
flush()
close()