A
Q. What will be the output of the following Java program?
class mainclass {
public static void main(String args[])
{
boolean var1 = true;
boolean var2 = false;
if (var1)
System.out.println(var1);
else
System.out.println(var2);
}
}
- Correct Answer - Option(C)
- Views: 13
- Filed under category Java
- Hashtags:
Discusssion
Login to discuss.