Local Variables

Local variables are fields declared in a specific method of a particular class.
They’re much like instance variables (see Instance variables) but they are not declared with any access modifiers since the can never be reached outside of the method they are declared in.
This is an example of a local variable:

Search for more Java info on this site here:
Custom Search

Please type any questions here.