Q. What is the output of the Java code snippet?
Code:
int a=4, b=8;
boolean c = a>1 ^ b<10;
if(c)
{
System.out.println("TREE");
}
else
{
System.out.println("BIRD");
}
β
Correct Answer: (B)
BIRD