Managing Locale Variable in Java

Managing Locale Variable in Java


Managing Locale Variable in Java :

Variable:Varies any number of values ,But it varying one statement to another statement.No variable should not varies at same statement in Java.Java does not support variable varying at same statement.
Locale Variable :A variable which is declared inside a method ,that variable is locale to that method,that variable is called as locale variable.Without initialized we cannot use locale variables.If you use any locale variable without initialized before.You get compile time error.

Ex:
Class LocalVariable
{
        public static void main(String [] args)
            {
                     System.out.println(i);
             }
}

output : error: variable i might not have initialized .

In Java we cannot give any value to locale variable,you can get compile time error.Any programming language have no default value for locale variables.