

MCQOPTIONS
Saved Bookmarks
1. |
What is the output of this program? 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 |
B. | 20 10 |
C. | 20 40 |
D. | 40 20 |
Answer» B. 20 10 | |