Examveda
Examveda

What will be the output of the following Java program?
class Output 
{
        public static void main(String args[]) 
        {    
             int a,b,c,d;
             a=b=c=d=20;
            a+=b-=c*=d/=20;
           System.out.println(a+" "+b+" "+c+" "+d);
 
        } 
}

A. compile time error

B. runtime error

C. a=20 b=0 c=20 d=1

D. none of the mentioned

Answer: Option C


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators