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 { /*
finally ALWAYS executes, unless the JVM was shut down, finally just provides a method to put the cleanup code in one place.
It would be too tedious if you had to put the clean up code in each of the catch blocks.
catch