Multiple Choice Question

Quiz Guidelines

 

QID: 
317
Question: 

What will the following class print when executed?

class Test{    
static boolean a;    
static boolean b;   
 static boolean c;    
public static void main (String[] args){       
 boolean bool = (a = true) || (b = true) && (c = true);       
 System.out.print(a + ", " + b + ", " + c);   
 } 
}

Select 1 option

A. true, false, true 
B. true, true, false 
C. true, false, false 
D. true, true, true 

Q&A Set: