Q. What is the output of the Java program?
Code:
long num = 123L;
if(num > 123)
{
System.out.println("TIGER");
}
else
{
System.out.println("BIRD");
}
β
Correct Answer: (B)
BIRD