Pregunta de entrevista de ValueFirst Digital Media

Difference between finally block and finalize method?

Respuesta de la entrevista

Anónimo

2 nov 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.