Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/Java
Javaeasy

What does `final` mean for a variable, a method, and a class?

Tags
#final#inheritance#java-basics
Back to categoryPractice quiz

Answer

A `final` variable can’t be reassigned, a `final` method can’t be overridden, and a `final` class can’t be extended. (It does not automatically make an object immutable.)

Related questions

Java
What are sealed classes in Java and why use them?
#java#sealed#inheritance