What Will Be The Output Of The Following Java Codep Pre #219
What will be the output of the following Java code?</p> <pre><code class="language-java" line="1"> 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); } }</code></pre>
This multiple choice question (MCQ) is related to the book/course
gs gs128 Java.
It can also be found in
gs gs128 Java Classes Methods - Overloading Methods & Argument Passing in Java - Quiz No.1.