As far as I can tell, both of the following code snippets will serve the same purpose. Why have finally blocks at all?
finally
Code A:
try { /*
If catch block throws any exception then remaining code will not executed hence we have to write finaly block.