OD
(Choose 1 answer)
Given the following code, what will be the outcome?
10. public class Funcs extends java.lang.Math {
11. public int add(int x, int y) {
12. return x + y;13. }
14. public int sub(int x, int y) {
15. return x - y;
16. }
17. public static void main(String[] a) { 18. Funcs f = new Funcs();
19. System.out.println("" + f.add(1, 2) + " " + f.sub(3,4));
20. }
21. }
A. The code compiles but does not output anything.
B. "3-1" is printed out to the console.
C. The line 10 causes compile-time error.
D. "3 1" is printed out to the console.
Exit (11