JLS at the 14.20.1 says:
If the run-time type of V is assignment compatible with (§5.2) a catchable exception class of any catch clause of the try statement, then the first (leftmost) such catch clause is selected.
What is leftmost? We put catch clauses from top-to bottom as, for instance:
try{ }
catch(IndexOutOfBoundException e){ }
catch(SQLException e){ }
catch(NullPointerException e){ }
//etc
This has nothing to do with any new language features of Java.
The term "leftmost" pertains simply to the earliest-occurring catch clause. Picture the code as a one-dimensional sequence of tokens, extending from left to right. That is how the language parser sees it.
Therefore all that stipulation states is that the first matching catch-clause is entered.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With