Page 1 of 1

About Question enthuware.ocajp.i.v7.2.1254 :

Posted: Wed Sep 11, 2013 7:36 am
by M.Komarov
Note that the last statement ( j+=4) is not executed as there was an exception thrown in the try block.
Maybe I'm wrong, but it seems to me that the reason (of not executing the statment j+="4") is the return; statment in the catch block. When I comment the return; statement, "4" appears at the end of the output.

Re: About Question enthuware.ocajp.i.v7.2.1254 :

Posted: Thu Sep 12, 2013 8:08 am
by admin
You are right. It is because of the return which is executed because of the exception caused in the try block. The explanation has now been enhanced to make it clear.

thank you for your feedback!
Paul.