Which statement 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) Re-declaring 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...
In Excel, any specified conditional formatting is applied when the criteria are not met
Indicate whether the statement is true or false
Simple borders and border edges can be added using the Border button from which group?
A) Styles B) Paragraph C) Editing D) Font