class
Test {
public static void main(
String args[]) {
for (int i=0; i<10; ++i) {
try {
if(i%3==0) throw new Exception("E0");
try {
if(i%3==1) throw new Exception("E1");
System.out.println(i);
} catch (Exception inner) {
i*=2;
} finally {
++i;
}
} catch (Exception outer) {
i+=3;
} finally {
++i;
}
}
}
}
output: 5,8
if earse inner try-catch output will be 5,7
if inner try-catch only will output 0,2
I can't got it, please help?