local variable : Java Glossary


local variable
A variable known only within a method and then only downstream of where it is defined and inside any block in which it was defined. Like parameters local variable are stored on the stack and are automatically disappear as soon as the method returns.

Local variables are faster than static and instance variables. Use them in preference to static and instance variables, except, of course, when are using the variable to communicate between methods, or define static final constants.

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number