title: Are resources closed before or after the finally?
body: <p>In Java 7's try-with-resources, I don't know which order the finally block and the auto-closing happens. What's the order?</p>
  
  <pre><code>BaseResource b = new BaseResource(); // not auto-closeable; must be stop'ed
  try(AdvancedResource a = new AdvancedResource(b)) {
  
  }
  finally {
      b.stop(); // will this happen before or after a.close()?
  }
  </code></pre>