A
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");
}
boolean c = a>1 ^ b<10;
if(c)
{
System.out.println("TREE");
}
else
{
System.out.println("BIRD");
}
- Correct Answer - Option(B)
- Views: 16
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.