Q36
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");
A.
FALSE
B.
TRUE
C.
Compilation Error
AnswerD.
Runtime Error
Answer: Option C
Solution
Answer: Option C
Solution:
bad operand types for binary operator '&&'if(x && y)