The first one which matches the type of exception thrown. Normally we go from most specific to most generic. The last one is usally simply an “Exception” type and hence if the exception is not caught by any of the specific types it gets caught with the final generic type.
Loading






