Professional Documents
Culture Documents
Scopeofvariables
Scopeofvariables
1) local variable:
A variable declared insside a method or a block is called as local
variable.
Local variable can only be accessed inside of a method or block
where it is declared.