What is the difference between final, finally, and finalize?

Entry Java

Answer

final: Constant or non-overridable.
finally: Executes after try/catch.
finalize: Called before garbage collection.

Want to bookmark, take notes, or join discussions?

Sign in to access all features and personalize your learning experience.

Sign In Create Account

Source: SugharaIQ

Ready to level up? Start Practice