Solved

Which Method Header Is Appropriate for This Method Body

Question 90

Multiple Choice

Which method header is appropriate for this method body?
{
If (num1 < num2)
{
Return num1;
}
Return num2;
}


A) public static void comp(int num1, int num2)
B) public static int comp(int num1, int num2)
C) public static boolean comp(int num1, int num2)
D) public static int comp(int num1, double num2)

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