← Back to Java

final vs finally vs finalize()

Javajava

The Question

What is the difference between final, finally, and finalize() in Java?

What a Strong Answer Covers

  • final = modifier for variables/methods/classes
  • finally = exception handling block always executes
  • finalize() = GC cleanup method on Object
  • three distinct keywords

Related Questions

  • JVM vs JRE vs JDK
  • Java Platform Independence
  • How JVM Works
  • Main Features of Java
  • public static void main

Practice This Question

Get AI-graded feedback on your answer with follow-up probes on weak points.

Take the Free Assessment
GrindQuestionsAITechnical interview assessment
TermsPrivacyAbout