R
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");
}
boolean c = a>25 & b<40;
if(c)
{
System.out.println("RABBIT");
}
else
{
System.out.println("GOOSE");
}
- Correct Answer - Option(B)
- Views: 166
- Filed under category JAVA
Discusssion
Login to discuss.