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(10));

A. 10
B. 110
C. This statement results in infinite recursion.
D. None of these

Answer: A

Computer Science & Information Technology

You might also like to view...

A ________ can be any text, picture or other object that accesses a Web page, file, or sections of the currently viewed web page

Fill in the blank(s) with correct word

Computer Science & Information Technology

Name the three most common Linux command shells.

What will be an ideal response?

Computer Science & Information Technology