Originally posted by HanMing Low:
I have some doubt on exception that I need some help.
Referring to the above problem, then in what kind of scenario will the output 4 be omitted if the return statement is not there.
What I mean is that when the return statement is commented out, the output+=4 will execute irregardless of whether the exception is thrown or not.
Then, in what case, will the finally excecute but not output+=4
Originally posted by Nisheeth Kaushal:
I have a very small doubt, see
output is set to " ", then "i" gets the value 0, and then this 0(int) is converted to string when system calls its toString() method. That means output now have a value of "0" and then we add 1 to this
"0" + 1 so it shud be "0134" why it is "134" ?.
Please reply urgently.