Analyze the following recursive method.
```
public static long factorial(int n) {
return n * factorial(n - 1);
}```
a. Invoking factorial(0) returns 0.
b. Invoking factorial(1) returns 1.
c. Invoking factorial(2) returns 2.
d. Invoking factorial(3) returns 6.
e. The method runs infinitely and causes a StackOverflowError.
e
Computer Science & Information Technology
You might also like to view...
By default, new workbooks contain ________ worksheets
Fill in the blank(s) with correct word
Computer Science & Information Technology
Give a command for displaying the login name of the user who was the first to log on a system.
What will be an ideal response?
Computer Science & Information Technology