Introducing Final

A variable can be declared as final. Doing so prevents its contents from being modified.
This means that you must initialize a final variable when it is declared.Example :

public class FinalExample {
	public static void main(String[] args) {
		final int A = 10; // convention is to use uppercase letters
		A = 20; // will give error
	}
}