Examveda
Examveda

What will be the output of the following Java code?
class booloperators {
    public static void main(String args[]) 
    {
        boolean var1 = true;
  boolean var2 = false;
  System.out.println((var1 & var2));
    } 
}

A. 0

B. 1

C. true

D. false

Answer: Option D


This Question Belongs to Java Program >> Data Types And Variables

Join The Discussion

Related Questions on Data Types and Variables