Section 5.14 Vocabulary
- void:
- A special return type indicating the function does not return a value.
- invoke:
- To cause a function to execute. Also known as βinvokingβ a function.
- flow of execution:
- The order in which Java executes functions and statements. It may not necessarily be from top to bottom in the source file.
- argument:
- A value that you provide when you call a function. This value must have the type that the function expects.
- parameter:
- A piece of information that a function requires before it can run. Parameters are variables: they contain values and have types.
- parameter passing:
- The process of assigning an argument value to a parameter variable.
- local variable:
- A variable declared inside a function. Local variables cannot be accessed from outside their function.
- stack diagram:
- A graphical representation of the variables belonging to each function. The function calls are βstackedβ from top to bottom, in the flow of execution.
- frame:
- In a stack diagram, a representation of the variables and parameters for a function, along with their current values.
- scope:
- The area of a program where a variable can be used.
- return type:
- The type of value a function returns.
- return value:
- The value provided as the result of a function invocation.
- temporary variable:
- A short-lived variable, often used for debugging.
You have attempted of activities on this page.