Hi Prasad,
I agree with you, but we can write finally after the try block without catch block is still valid right?
In the above case what if try block thows some exceptions!!! where do we need to catch them?
I hope you got my point.
Thanks in Advance
Nagaraj SK
Prasad Kharkar wrote:We cannot use finally block to catch exceptions
what the finally block means that whatever we write in the finally block, it is executed regardless the exception is thrown or not