posted 9 years ago
Hi aman,
AS Ulf said, a question is well answered if you dig up some knowledge yourself....but still:
The flush method flushes the output stream and forces any buffered output bytes to be written out. The general contract of flush is that calling it is an indication that, if any bytes previously written have been buffered by the implementation of the output stream, such bytes should immediately be written to their intended destination.
The buffering is mainly done to improve the I/O performance.
Abstract is defined in the link Ulf has shared.
Thanks,
Shivom