title: difference between flush and close function in case of filewriter in java
body: <p>I need to know what is exact difference between flush and close function in Java?</p>
  
  <p>And When the data is dumped into a file during writing of file?</p>
  
  <p>Please provide one example</p>