Home / Programming MCQs / JAVA MCQs / Question

K

Kirti • 10.37K 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

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.