Java / Local Variables
Define local variable.
Local variable also known as block level variable, are identifiers that are declared within a block of code or method.
This variable need to be initialized before using it.
In the below examples, "i" variable is an example of local variable and it is visible only to the enclosing block.
{ int i; }
void methodName() { int i; }
More Related questions...