A
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));
}
}
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
System.out.println((var2 & var2));
}
}
- Correct Answer - Option(D)
- Views: 4
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.