intermediateCore Java Fundamentals189 of 436
What is the difference between final, finally, and finalize()?
Tests whether you keep the three apart despite the similar spelling -- final is a modifier preventing reassignment/overriding/subclassing, finally is the block that always runs after try/catch regardless of outcome, and finalize() is a deprecated Object method the GC used to call before reclaiming an object, with no execution guarantee.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response