Solved

Look at the Following Method: Public Static Int Test2(int X

Question 32

Multiple Choice

Look at the following method: public static int test2(int x, int y)
{
If ( x < y)
{
Return -5;
}
Else
{
Return (test2(x - y, y + 5) + 6) ;
}
}
What is the recursive case for the method?


A) x < y
B) -5
C) x >= y
D) x != y

Correct Answer:

verifed

Verified

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

Related Questions