title: Difference between java.io.PrintWriter and java.io.BufferedWriter?
body: <p>Please look through code below: </p>
  
  <pre><code>// A.class
  File file = new File("blah.txt");
  FileWriter fileWriter = new FileWriter(file);
  PrintWriter printWriter = new PrintWriter(fileWriter);
  
  // B.class
  File file = new File("blah.txt");
  FileWriter fileWriter = new FileWriter(file);
  BufferedWriter bWriter = new BufferedWriter(fileWriter);
  </code></pre>
  
  <p>What is the difference between these two methods?</p>
  
  <p>When should we use PrintWriter over BufferedWriter?</p>