Self-Review Exercises
-
D.1 Fill in the blanks in each of the following statements:
A method is invoked with a(n) .
A variable known only within the method in which it’s declared is called a(n) .
The statement in a called method can be used to pass the value of an expression back to the calling method.
The keyword indicates that a method does not return a value.
Data can be added or removed only from the of a stack.
Stacks are known as data structures; the last item pushed (inserted) on the stack is the first item popped (removed) from the stack.
The three ways to return control from a called method to a caller are , and .
An object of class ...
Get Android How to Program, 3/e now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.