final keyword in java

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 […]

Share this article on