final keyword

 The final keyword is a non-access modifier.

final can be used with Variable, Method, and Class.


  • final variable - value cannot be changed. the value is constant.
  • final method - cannot be overridden.
  • final class - cannot be extended/inherited.

Comments

Popular Posts