Examveda
Examveda

What will be the output of the following Java 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

Answer: Option C


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators