Q. What will be the output of the following Java code?

Code:
class Relational_operator 
{
    public static void main(String args[])
    {
        int var1 = 5; 
        int var2 = 6;
        System.out.print(var1 > var2);
    } 
}
  • (A) 1
  • (B) 0
  • (C) true
  • (D) false
πŸ’¬ Discuss
βœ… Correct Answer: (D) false

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
125
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Neelam Mittal
Publisher
πŸ“ˆ
99%
Success Rate