Chapter 6: Problem 1
Fill in the blanks in each of the following statements: a) A method is invoked with a(n) _____. b) A variable known only within the method in which it's declared is called a(n) ______, c) The ______ statement in a called method can be used to pass the value of an expression back to the calling method. d) The keyword ________ indicates that a method does not return a value. e) Data can be added or removed only from the ______ of a stack. f) Stacks are known as _______ stack is the first item popped (removed) from the stack. g) The three ways to return control from a called method to a caller are ________, ________ and ______, h) An object of class _____ produces truly random numbers. i) The method-call stack contains the memory for local variables on each invocation of a method during a program's execution. This data, stored as a portion of the method-call stack, is known as the ______ or _____ of the method call. i) If there are more method calls than can be stored on the method-call stack, an error known as a(n) ______ occurs. k) The _______ of a declaration is the portion of a program that can refer to the entity in the declaration by name. l) It's possible to have several methods with the same name that each operate on different types or numbers of arguments. This feature is called method ______.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.