Advertisement
JackHoughton00

Textbook Written Questions

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