title: Why close method of java.lang.AutoCloseable throws Exception, but close method of java.io.Closeable throws IOException?
body: <p>I was reading this <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html" rel="noreferrer">link</a> for <code>try-with-resources</code> and it says:</p>
  
  <blockquote>
    <p>The close method of the <code>Closeable</code> interface throws exceptions of type <code>IOException</code> while the close method of the <code>AutoCloseable</code> interface throws exceptions of type <code>Exception</code>.</p>
  </blockquote>
  
  <p>But why? The close method of <code>AutoCloseable</code> could have also thrown <code>IOException</code> is there any example that support that close method of <code>AutoCloseable</code> must throw exceptions of type <code>Exception</code></p>