Infogain Interview Question

try{ }catch(){ } file.close(); we can write this statement without finally con.close(); /*finally{ file.close(); con.close(); }

Interview Answer

Anonymous

Sep 9, 2019

if try and catch block does not have return statement then only this code execute but with finally does not matter with return statement