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.
- 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