you can take care of them, ofcourse! to be more specific you should, but I was just explaining wehy you didn't see the other exception, the one from 'line 1'Originally posted by alapati kirankumar:
exceptions thrown inside a catch block are 'eaten'
u r not taking care of the exceptions raise in catch block.....
Originally posted by vishnu prakash:
The "return 0" statement in finally clause actually nullifies the exception
so only you are not get the exception stack trace printed during runtime.
Thanks and Regards, Amit Taneja
Shweta Dhaneshwar.<br />SCJP 1.4 90%
"I'm not back." - Bill Harding, Twister
Originally posted by vishnu prakash:
I think there are differences between throwing a exception either
explicitly (or) programatically and return statement in a finally block
The return statement nullifies any previous exception and makes sure
the programs flow continues normally. Regarding a exception thrown inside
a finally block even though it discards any previous exceptions( either is try block (or) catch block) still it generates a new exception and you will see a stack trace print during runtime.
Thanks and Regards, Amit Taneja
Consider Paul's rocket mass heater. |