Which of the following statements is false?
a. If a method does not return a value, the return-value-type in the method declaration can be omitted.
b. Placing a semicolon after the right parenthesis enclosing the parameter list of a method declaration is a syntax error.
c. Redeclaring a method parameter as a local variable in the method’s body is a compilation error.
d. Forgetting to return a value from a method that should return a value is a compilation error.
a. If a method does not return a value, the return-value-type in the method declaration can be omitted.
You might also like to view...
Loops intended to read and process a series of values are called ____ loops.
A. output B. read C. write D. input
?A data entry control is associated with a _____ in which data values supplied by the user are stored.?
A. ?web server B. ?data store C. ?data field D. ?desktop