Examveda
Examveda

What will be the output of the following Java code?
class Output 
{
    public static void main(String args[]) 
    {    
         boolean a = true;
         boolean b = false;
         boolean c = a ^ b;
         System.out.println(!c);
    } 
}

A. 0

B. 1

C. false

D. true

Answer: Option C


This Question Belongs to Java Program >> Operators

Join The Discussion

Related Questions on Operators