Q61
What will be the output of the following Java code? class test int a; int b; void meth(int i , int j) i *= 2; j /= 2; class Output public static void main(String args[]) test obj = new test(); int a = 10; int b = 20; obj.meth(a , b); System.out.println(a + " " + b);
A.
10 20
AnswerB.
20 10
C.
20 40
D.
40 20
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board