Hi Here I am adding a small point to this.
If the Final variable is inside the method we need to initialize the value before using that variable, Irrespective of the place.
Please see the below example......
class FinalTest
{
public static void main(
String[] args){
final int x;
System.out.println("IN FinalTest");
x=9;
System.out.println(x);
}
}