K

Kirti • 10.45K Points
Tutor II

Q. What is the output of this program?

Code:
class booloperators {
     public static void main(String args[])
      {
       boolean var1 = true;
     boolean var2 = false;
      System.out.println((var2 & var2));
         }
      }
  • (A) 0
  • (B) 1
  • (C) true
  • (D) false
  • Correct Answer - Option(D)
  • Views: 152
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics