What Will Be The Output Of The Following Java Codep Pre #116
What will be the output of the following Java code?</p> <pre><code class="language-java" line="1"> class operators { public static void main(String args[]) { int var1 = 5; int var2 = 6; int var3; var3 = ++ var2 * var1 / var2 + var2; System.out.print(var3); } }</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 Operators Control Statements - Java Assignment Operators and Operator Precedence - Quiz No.1.