local variable example java
Example: what is local variable in java
Local variables are declared in methods,
constructors, or blocks. Local variables
are created when the method, constructor
or block is entered and the variable will
be destroyed once it exits the method,
constructor, or block.