title: What is the purpose of flush() in Java streams?
body: <p>In Java, <code>flush()</code> method is used in streams. But I don't understand what are all the purpose of using this method?</p>
  
  <pre><code>fin.flush();
  </code></pre>
  
  <p>tell me some suggestions.</p>