In the case of a single statement catch to handle multiple exceptions, why is the argument implicit final ?
catch
final
catch (IOException|SQLException ex) { logger.log(ex); throw ex; }
In this code, ex final . Why is this so?
Otherwise, you might be tempted to write something like ex = new IOException(); , but since the type is not really IOException or SQLException , it will violate type safety in a strange way.
ex = new IOException();
IOException
SQLException