final keyword in java
- 17th Aug 2017
- 0
- 3343
- class and variable final keyword in java final keyword with an example how to use final keyword for method
The ” final ” keyword can be applied for variables,methods and classes. final variable: if a variable is marked as final, its reference can not be changed once initialized. Example: final int x=10; Now variable “x” is called final variable and its value 10 can not be changed further and doing so will give compile […]