Question: What will be the output of the following Java code? class operators { 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
What will be the output of the following Java code? class operators { 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. } public static void main(String args[]) { int var1 = 5; int var2 = 6; int var3; var3 = ++ var2 * var1 / var2 + var2; System.out.print (var3);
Step by Step Solution
There are 3 Steps involved in it
Answer 12 is the correct output The given Java code calculates the value ... View full answer
Get step-by-step solutions from verified subject matter experts
