Monday, January 23, 2012

final variable

RULE: we can declare a variable as final and not necessary declare a variable until it will be use.
we can initialize the variable at the time of use it.

public class Final_Variable
public static void main(String ar[])
final int x;
System.out.println("hello");   //no error its legal