1.

Difference Between Final, Finally And Finalize ?

Answer»

FINAL is used to apply restrictions on CLASS, method and variable. 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.

Final is used to apply restrictions on class, method and variable. 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.



Discussion

No Comment Found