click below
click below
Normal Size Small Size show me how
Ch 4 CompSci
Term | Definition |
---|---|
void | a special return type indicating the method does not return a value |
invoke | to cause a method to execute. Also known as calling a method |
flow of execution | the order in which Java executes methods 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 method. This value must have the type that the method expects |
parameter | a piece of information that a method requires before it can run. Parameters are variables |
parameter passing | the process of assigning an argument value to a parameter variable |
local variable | a variable declared inside a method. Local variables cannot be accessed from outside their method |
stack diagram | a graphical representation of the variables belonging to each method. The method 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 method, along with their current values |
scope | the area of a program where a variable can be used |
compose | to combine simple expressions and statements into compound expressions and statements |
return type | the type of value a method returns |
return value | the value provided as the result of a method invocation |
temporary variable | a short-lived variable, often used for debugging |
incremental development | a process for creating programs by writing a few lines at a time, compiling, and testing |
stub | a placeholder for an incomplete method so that the class will compile |
scaffolding | code that is used during program development but is not part of the final version |