4.7k views
0 votes
Consider the following definition of a recursive method.public static int func2(int m, int n) { if (n == 0) return 0; else return m + func2(m, n - 1); } Which of the following statements about the code in the accompanying is always true?

System.out.println(recFunc(10));

10

110

This statement results in infinite recursion.

None of these

User Lanwen
by
5.4k points

1 Answer

3 votes

Answer:

None of these

Step-by-step explanation:

110

User Laurent Bristiel
by
5.3k points