Q. What is the output of the Java code snippet?
Code:
int a=25, b=30;
boolean c = a>25 | b<40;
if(c)
{
System.out.println("RABBIT");
}
else
{
System.out.println("GOOSE");
}
β
Correct Answer: (A)
RABBIT