title: When is "throws Exception" thrown?
body: <p>Assume the following function:</p>
  
  <pre><code>public void close() throws SQLException {
      if (rs != null) { rs.close(); }
      if (ps != null) { ps.close(); }
      if (connection != null){ connection.close(); }
  }
  </code></pre>
  
  <p>If I try to close rs and it fails, does the rest of my code still get executed (i.e. does the exception get thrown at the end), or does it immediatly interrupt the function (and thus prevent ps and connection from getting closed correctly).</p>