Code A:
try{// Some Code}
catch{// Exception Handling code}
finally{// Clean up code}
Code B:
try{// Some Code}
catch{// Exception Handling code}
//clean up code
As far as I understand both the codes will serve the same purpose. Then why to have finally at all.