title: How to close Java Formatter, in finally or not?
body: <p>I know that normally <code>streams</code> and <code>formatters</code> (particularly <code>java.util.Formatter</code>) in Java should be closed in <code>finally</code> to avoid from resource leaks. But here I am a little bit confused, because I see a lot of examples where people just close it without any finally block, especially the formatters. This question may have no sense to some people, but I want to be sure in what I am asking about. 
  Some examples from <a href="http://www.java2s.com/Tutorials/Java/java.util/Formatter/Java_Formatter_close_.htm" rel="nofollow">java2s.com</a> and from <a href="http://www.tutorialspoint.com/java/util/formatter_close.htm" rel="nofollow">tutorialspoint.com</a> where the formatters are just closed without any block.
  <br/>Please consider that my question is only for Java 6 and lower versions, because I know about try with resources.</p>
  
  <p>Example:</p>
  
  <pre><code>public static void main(String[] args) {
  
  
    StringBuffer buffer = new StringBuffer();
    Formatter formatter = new Formatter(buffer, Locale.US);
  
    // format a new string
    String name = "from java2s.com";
    formatter.format("Hello %s !", name);
  
    // print the formatted string
    System.out.println(formatter);
  
    // close the formatter
    formatter.close();
  
    // attempt to access the formatter results in exception
    System.out.println(formatter);
  }
  </code></pre>