Solved

Consider the Following Definition of a Recursive Method

Question 47

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