title: Try-with-resources: Must I throw or catch the close() method's exceptions?
body: <p>Please correct me if this is wrong:  In Java 7's try-with-resources statement, any exceptions thrown by the resource's <code>close()</code> method must be either declared as thrown by my method or I must wrap the whole try in another <code>try</code> which catches any exceptions thrown by <code>close()</code>.</p>
  
  <p>If so, I have to wonder if I will make much use of it.  I certainly don't want to <code>throw</code> the exceptions thrown by <code>close()</code>, the caller won't know what to do with that.  And a <code>try</code> wrapping another <code>try</code> just to handle <code>close()</code> would not look very elegant, to me at least.</p>
  
  <p><b>EDIT:</b>  I think I accidentally asked two questions, one of which was a duplicate.</p>
  
  <p>Question 1.  Do I have to declare that my method throws the exception from the <code>close()</code> method or wrap the try-with-resources in another try?  (Not answered in proposed duplicate.)</p>
  
  <p>Question 2.  Is there a way to close the resource silently?  (Clearly a duplicate, so I am taking that sentence out of the question.  Hopefully this makes the question satisfactorily unique.)</p>