Constants
Mikael Olsson · Apress eBooks · 2021
A variable in Java can be made into a constant by adding the final keyword before the data type. This modifier means that the variable can’t be reassigned once it’s been set, and any attempts to do so will result in a compile-time error.