final keyword can be used to declare a variable as a constant in Java. To use
final keyword to declare a constant, follow these seven steps.
final keyword is coded before the data type declaration. Once a value is assigned, the value of the variable cannot be changed. Therefore, the statement highlighted in the red, rounded rectangle will fail compilation.