Solved

Consider the Following Definition of a Recursive Method

Question 39

Multiple Choice

Consider the following definition of a recursive method.public static int recFunc(int num)
{
If (num >= 10)
Return 10;
Else
Return num * recFunc(num + 1) ;
}What is the output of the following statement?System.out.println(recFunc(8) ) ;


A) 8
B) 72
C) 720
D) None of these

Correct Answer:

verifed

Verified

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

Related Questions