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.