Need Assistance?

support@tutorialshub.in

Inheritance, Polymorphism & Abstraction

final Keyword & Object Class (equals, hashCode)

ADVERTISEMENT
Java Free Lesson
5 min read
ADVERTISEMENT

The final keyword locks things down: a final variable cannot be reassigned, a final method cannot be overridden, and a final class (like String) cannot be inherited. Every class in Java implicitly extends java.lang.Object, inheriting toString(), equals(), and hashCode().

ADVERTISEMENT
Hi, I'm Tuby! Here to help you