Which of the following statements is false? Question 17 options: A) Redeclaring a method parameter as a local variable in the method's body is a compilation error. B) Forgetting to return a value from a method that should return a value is a compilation error. C) If a method does not return a value, the return-value-type in the method declaration can be omitted. D) Placing a semicolon after the )enclosing the parameter list of a method declaration is a syntax error.

Respuesta :

Limosa

Answer:

Option C.

Explanation:

Re-declaring the function parameter as the local variables throughout the structure of the function seems to be a compilation failure, failing to retrieve the value from such a function which would be returned the value would be a compilation error, and adding the semi colon after that the right parenthesis is such a syntax error.

So, the following are the reason that describes the other options are correct according to the scenario.

ACCESS MORE