Variable Scope
Variable Scope
Local variables are:
- Variables that are defined inside a method and are called local, automatic, temporary, or stack variables
- Created when the method is executed and destroyed when the method is exited
- Variables that must be initialized before they are used or compile-time errors will occur