Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1a) Using methods to define tasks is called procedural abstraction.
- 1b) The static void in the main() method means that it is a method of the class and does not generate a value.
- 1c) In Java, arguments are passed by value, which means that the data stored in an argument is passed.
- 1d) A method declaration can include method parameters, which accept values from the method call. The terms “parameter” and “argument” are often used synonymously.
- 1e) Method overloading is when more than one method of the same name is included in a class.
- 1f) The return statement is used to send a value back to the calling statement. A return statement can return only one value.
- 11a) True.
- b) False, a method call consists of the method name followed by parentheses
- c) False, a void method will not return a value.
- d) False, it can be called by any other method.
- e) True.
- f) True.
- g) False, the variables can only be used in that one method.
- h) True.
- False, method overloading is anything more than one.
- j) True.
- k)True.
- l) False, it will not state the way it accomplished the task.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement