try{ }catch(){ } file.close(); we can write this statement without finally con.close(); /*finally{ file.close(); con.close(); }
Anonymous
if try and catch block does not have return statement then only this code execute but with finally does not matter with return statement
Check out your Company Bowl for anonymous work chats.