Skip to content

Conversation

@vardhan30016
Copy link
Contributor

Summary

Added a new interview question to the README explaining the difference between final, finally, and finalize() in Java.

Details

  • Added the new question and detailed explanation in the same format as existing ones.
  • Included clear examples for each keyword:
    • final keyword usage with variables, methods, and classes.
    • finally block demonstration in exception handling.
    • finalize() method example showing its purpose before garbage collection.
  • Followed the structure and markdown consistency of other questions.

Purpose

This addition helps learners easily understand one of the most frequently asked Java interview questions and clears up common confusion between these three similar-sounding concepts.

⬆ Back to Top

@sudheerj
Copy link
Owner

sudheerj commented Nov 6, 2025

@vardhan30016 Thanks for PR. Your contributions are welcome.

@sudheerj sudheerj merged commit ecadaee into sudheerj:main Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants