Answers for "why do local variables in java have to be used"

1

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.
Posted by: Guest on January-22-2021

Code answers related to "why do local variables in java have to be used"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language