what are local variables in java?
Java For Dummies Quick Reference A local variable in Java is a variable that's declared within the body of a method. Then you can use the variable only within that method. Other methods in the class aren't even aware that the variable exists. ... Local variables are not given initial default values.