MY mENU


Thursday 9 February 2012

Local variables in java


A variable declared inside a Method without any keyword is called as Local Variable.

- We have to initialize the local variable when the time of declaring the variable.
- Without initialization, if we call it, we get an error.
JVM doesn't initialize the Local Variable with Default Values.
Local Variable can't be static.

No comments:

Post a Comment