title: What do I need to close when using PrintWriter in Java
body: <p>When using a <code>PrintWriter</code> like this :</p>
  
  <pre><code>PrintWriter fileOut = new PrintWriter(new BufferedWriter(new FileWriter(csvFileIn)));
  </code></pre>
  
  <p>What do I need to close in the finally block ? The PrintWriter, the BufferedWriter and the FileWriter ?</p>
  
  <p>Do I need to try catch the close statement in the finally block ?</p>
  
  <p>[EDIT]
  I need to use java 6, so I can't use the try-with-resources statement.</p>