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 is 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. 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 ______ data structures - the last item pushed (inserted) on the stack is the first item popped (removed) from the stack. g) The three ways to return control from a calfed method to a caller are ______ . _____ and _____ h) An object of class_____ produces random numbers. 190 i) The program execution 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 prosogram execution stack, is known as the _____ or _____ of the method call. j) If there are more method calls than can be stored on the program execution 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) In Java, 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 ._______ m) The program execution stack is also referred to as the ________ stack.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.