Q. What is the output of the Java program?
Code:
int horses = 10;
int camels = 5;
if(horses < 5)
{
System.out.println("TOWN");
}
else if(horses >=5)
System.out.print("FOREST ");
System.out.println("AMAZON");
else
System.out.println("UNKNOWN");
β
Correct Answer: (D)
Compiler error