Home Segments Top Top Previous Next

135: Mainline

Variables that are declared inside blocks are said to be local variables. Local-variable values are available only in the statements that appear inside the block in which the local variable is declared.

A parameter is treated as though it were a local variable declared inside a method body. Accordingly, a parameter is really a local variable that happens to be initialized with an argument value.