πŸ“Š JAVA
Q. What will be the output of the following Java code?
Code:
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);
    } 
}
  • (A) 10
  • (B) 11
  • (C) 12
  • (D) 56
πŸ’¬ Discuss
βœ… Correct Answer: (C) 12

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
127
Total Visits
πŸ“½οΈ
12 mo ago
Published
πŸŽ–οΈ
Gopal Sharma
Publisher
πŸ“ˆ
88%
Success Rate