title: try-with-resource vs finally precedence
body: <p>What are the precedence rules for <code>try-with-resource</code> construct? Here is an example (note: all the mentioned classes implement <code>Closeable</code>):</p>
  
  <pre><code>try (Page closeablePage = page;
       PipedOutputStream out = outs;
       SequenceWriter sequenceWriter = mapper.writer().writeValuesAsArray(out)) {
    // do stuff
  } finally {
    callback.run();
  }
  </code></pre>
  
  <p>When is the callback run? My assumptions is:</p>
  
  <ol>
  <li>closing the <code>SequenceWriter</code></li>
  <li>closing the <code>PipedOutputStream</code></li>
  <li>closing the <code>Page</code></li>
  <li>running the callback</li>
  </ol>
  
  <p>Am I wrong here?</p>