Q. What is the output of the Java code snippet below?
Code:byte a= 1;
if(!a)
{
System.out.println("FISH");
}
else
{
System.out.println("CRAB");
}
β
Correct Answer: (C)
Compiler error
byte a= 1;
if(!a)
{
System.out.println("FISH");
}
else
{
System.out.println("CRAB");
}
You must be Logged in to update hint/solution