Vanguard interview question

Explain final, finally and finalize as it pertains to Java.

Interview Answer

Anonymous

1 Jul 2019

Got this from Javapoint: Final class can't be inherited, final method can't be overridden and final variable value can't be changed. 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.