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.Note that the last statement ( j+=4) is not executed as there was an exception thrown in the try block.
About Question enthuware.ocajp.i.v7.2.1254 :
Moderators: Site Manager, fjwalraven
-
- Posts: 17
- Joined: Fri Sep 06, 2013 1:37 am
- Contact:
About Question enthuware.ocajp.i.v7.2.1254 :
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.ocajp.i.v7.2.1254 :
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.
thank you for your feedback!
Paul.
Who is online
Users browsing this forum: No registered users and 7 guests