Consider this method comment. Which of the following options is recommended in your textbook?
/**
Computes the area of a cuboid.
@param width the width of the cuboid
@return the area of the cuboid
*/
Public static double area(double width, double height,
Double length)
{
Double result = width * height * length;
Return result;
}
A) The parameter "width" need not be described.
B) The first line of the comment should be omitted because it is obvious.
C) All of the parameters should be described.
D) The @return clause of the comment should be omitted because it is obvious.
Correct Answer:
Verified
Q20: One advantage of designing methods as black
Q21: Consider a method named avg, which accepts
Q22: Consider a method named calc, which accepts
Q23: What is the output of the following
Q24: What is the error in the following
Q26: What is the syntax error in the
Q27: In a vehicle mileage application, you enter
Q28: What is the error in the following
Q29: The Java method Math.round can be used
Q30: In an accounting application, you discover several
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents