Which Catch block execute when we have multiple catch with try clause
Manav Pandya
Select an image from your device to upload
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.
once the exception occur the appropiriate catch will execute if it is not there means the base catch block will execute
know more about this question refer
https://youtu.be/sdjR0D5nyqQ
top to bottom order