Thanks & Regards,
Author
Thanks & Regards,
Author
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Manuel Leiria<br /> <br />--------------<br />Peace cannot be kept by force; it can only be achieved by understanding. <br /> Albert Einstein
Vishal Pandya: It's not to handle the exception.Here, catch block is at your rescue.
Vishal Pandya: Now, If i stick with your words then it's not possible to handle any exception in finally block because it's not his babby at all.
I think there's no word as babby. Have a look at using real words.it's not his babby at all
Manuel Leiria: Can we deal with the exception in the finally block? yes we can (almost sounds like Barack Obama campaign slogan
Originally posted by Anubhav Anand:
Another brick in the wall :
Originally posted by Manuel Leiria:
Yes we can (but it might not be the best approach)
Does it compile? yes it does
Can we deal with the exception in the finally block? yes we can (almost sounds like Barack Obama campaign slogan )
Originally posted by ashvini pradeep:
I have attended a interview, in that, they asked me,
"Can we handle Nullpointer exception in finally block? Will it compile or not?"
Originally posted by Anubhav Anand:
I think there's no word as babby. Have a look at using real words.
[ April 23, 2008: Message edited by: Anubhav Anand ]
Thanks & Regards,
Author
Originally posted by Vishal Pandya:
A hole in that wall
...........................
But be afraid from catch block.
Originally posted by Vishal Pandya:
Somebody has just said that catch block is more appropriate than finally block to handle the exception according to sun's official document.And If you are using catch block why to handle exception in finally block.
Is anybody gonna handle the exception in this way?