?
What will be the output?
What will be the output?
public class Test{
public static void main(String[] args){
int x=10, y=0;
if(x && y){
System.out.print("TRUE");
}
else{
System.out.print("FALSE");
}
}
}
public class Test{
public static void main(String[] args){
int x=10, y=0;
if(x && y){
System.out.print("TRUE");
}
else{
System.out.print("FALSE");
}
}
}
Answer & Solution
Correct Answer:
Option
C
bad operand types for binary operator '&&'
if(x && y)
if(x && y)
Join the Discussion
Login to post a comment or share your explanation.
Loginif (a && b)
this is the correct way