Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
15 Cards in this Set
- Front
- Back
A method is invoked with a(n) _____________.
|
method call
|
|
A variable known only within the method in which it is declared is called a(n) ___________.
|
local variable
|
|
The _____________ statement in a called method can be used to pass the value of an expression
back to the calling method. |
return
|
|
The ____________ keyword indicates that a method does not return a value.
|
void
|
|
Data can be added to or removed from only the ___________ of a stack.
|
top
|
|
Stacks are known as _____________data structures—the last item pushed (inserted) on the stack is the first item popped off (removed from) the stack.
|
last-in-first-out (LIFO)
|
|
The three ways to return control from a called method to a caller are ______________, _____________ and ______________.
|
return, return expression and encountering the closing right brace of a method
|
|
An object of class _____________ produces pseudorandom numbers.
|
Random
|
|
The program-execution stack contains the memory for local variables on each invocation of a method during an application’s execution. This data, stored as a portion of the program-execution stack, is known as the ____________ or _____________ of the method call.
|
activation record or stack frame
|
|
If there are more method calls than can be stored on the program-execution stack, an error known as a(n) ___________ occurs.
|
stack overflow
|
|
The _____________ of a declaration is the portion of an application that can refer to the entity in the declaration by its unqualified name.
|
scope
|
|
It is possible to have several methods with the same name that each operate on different types or numbers of arguments. This feature is called method _____________.
|
overloading
|
|
The program execution stack is also referred to as the _____________ stack.
|
method call
|
|
A method that calls itself either directly or indirectly is a(n) _________ method.
|
recursive
|
|
A recursive method typically has two components: one that provides a means for the recursion to terminate by testing for a(n) ___________ case and one that expresses the problem as a recursive call for a slightly simpler problem than does the original call.
|
base
|