Q. What is the output of this program?
Code:public class Relational_operator_Example
{
public static void main(String args[])
{
int num1 = 7;
int num2 = 6;
System.out.print(num1 > num2);
}
}
β
Correct Answer: (A)
true
Explanation: Operator > returns a boolean value. 5 is not greater than 6 therefore false is returned.
output: true
output: true