In code:2 it is not throwing exception thats why it is showing an error..
it is cleared for me.
CODE:1 In code:1 the value of x is 2.
so it is throwing level2 exception which is handled by corresponding catch block.
what about remaining catch blocks?
Level3,Level2 and Level1 exceptions are checked exceptions...
here we have 2 catch blocks for Level1 and Level3 exceptions which are not throwing any exceptions..
why these are not showing any compilation error?