I am very confused as to why do I need to need to put the clean-up code like closing streams in a finally block.
finally
I\'ve read that the code in finally<
finally<
If an Exception occurs, ie, the try block is executed, then, rest assured, the finally block will also be executed. It's just a safeguard option instead of putting an unreliable assumption that the rest of the method will get executed.
Exception