class A { final int x=100; void get() { x=200; //compile time error }
Final variable : value never changed
Final method : method never overridden
Final class : class never inherited
Can final method inherited?
Yes, it is possible we can inherit final method but cannot override it.
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc