Pergunta de entrevista da empresa ValueFirst Digital Media

Difference between finally block and finalize method?

Resposta da entrevista

Sigiloso

2 de nov. de 2020

Finally is used to place important code, it will be executed whether exception is handled or not. Finalize is used to perform clean up processing just before object is garbage collected. Final is a keyword. Finally is a block.