Question: what are local variables in java?
Answer: 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.