Q. What is the output of the Java program with IF statement?
Code:
if(true)
{
break;
System.out.println("ELEPHANT");
}
β
Correct Answer: (C)
Compiler error
if(true)
{
break;
System.out.println("ELEPHANT");
}
You must be Logged in to update hint/solution