Automatic Variables
Identifiers are used to define variables and methods.
Identifiers have a duration, or time over which they exist.
Identifiers have a scope, or place in the program where they exist.
Local variables are a method’s parameters and the variables declared in the body of the method
- have automatic duration over the life of the block
- Are scoped within the method.
- Automatic variables must be initialized
Static variables are persistent from the time that they are loaded until the program terminates.