Sollicitatievraag bij ValueFirst Digital Media

Difference between finally block and finalize method?

Antwoord op sollicitatievraag

Anoniem

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.