title: Order of catching exceptions in Java
body: <p>If I'm not mistaken, subclasses of Exceptions should be caught first. But having to catch any RuntimeException and a concrete checked Exception, which should be caught at first?</p>
  
  <pre><code>try {
      ...
  } catch(RuntimeException e) {
      ...
  } catch(IOException e) {
      ...
  }
  </code></pre>
  
  <p>Is this order a correct one? Or is it correct but a bad option?</p>