Pergunta de entrevista da empresa Infogain

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

Resposta da entrevista

Sigiloso

9 de set. de 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