Q. What is the output of the Java code snippet?
Code:int k=20;
if(k)
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
β
Correct Answer: (C)
Compiler error
int k=20;
if(k)
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
You must be Logged in to update hint/solution