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 { /*
There may be times when you want to execute a piece of code no matter what. Whether an exception is thrown or not. Then one uses finally.