This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
flush method is used to make sure that every piece of data has been written out before you close the stream.
Buffering means rather than reading a unit data every time from the source a bunch of data is read and buffered (temporarily stored) in the buffered stream from where it is red one by one which saves us from complicated reading operations every time.
same is with buffered writing.
this is what i understood..but I think somewhere I am wrong, can somebody help me with these?