Solved

What Is the Syntax Error in the Following Method Definition

Question 26

Multiple Choice

What is the syntax error in the following method definition?
Public static String parameter(double r)
{
Double result;
Result = 2 * 3.14 * r;
Return result;
}


A) The method does not return the value result.
B) The method does not specify the result return type.
C) The variable result is set but never used.
D) The value that is returned does not match the specified return type.

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents