1.

What is the output of this program? class test { int a; int b; test(int i, int j) { a = i; b = j; } void meth(test o) { o.a *= 2; O.b /= 2; } } class Output { public static void main(String args[]) { test obj = new test(10 , 20); obj.meth(obj); System.out.println(obj.a + " " + obj.b); } }

A. 10 20
B. 20 10
C. 20 40
D. 40 20
Answer» C. 20 40


Discussion

No Comment Found