Constants are fixed values whose values cannot be changed during the execution of program. We create constants in java using final keyword.
Example :
final int number = 10;
final String str=”java-constants”;
Constants are fixed values whose values cannot be changed during the execution of program. We create constants in java using final keyword.
Example :
final int number = 10;
final String str=”java-constants”;