(Choose 1 answer)
1. public class Test {
. public String foo(int x, int y) { 2
3.
return "AA":
A. Line 26 prints "AA" to System.out.
4. }
6. public String foo(int... vals) {
B. Compilation of class A will fail due to an error in line 6.
return "BB":
C. An exception is thrown at line 26 at runtime.
8.}9.}
D. Line 26 prints "BB" to System.out.
Given:
25. Test a=new Test();
26. System.out.println(a.foo(4, 5));
What is the result?