say I have the following
try{ //something }catch(Exception generic){ //catch all }catch(SpecificException se){ //catch specific exception only }
As a side note, the only way to have both catch blocks called is to use nested exceptions.
try { try{ //something }catch(SpecificException se){ //catch specific exception only throw se; } }catch(Exception generic){ //catch all }