class ee
{
public static void main(String args[])
{
boolean a;
a=true;
System.out.println("Answer is "+a);
a=false;
System.out.println("Answer is "+a);
if(a) System.out.println("This is not executed");
a=true;
if(a)
System.out.println("This is executed");
System.out.println("10>11 is "+(10>11));
}
}
Output:
Ansewr is true Answer is false This is executed 10>11 is false
Why it is showing "This is executed" in the third line of the output? Why "This is not executed" is not there in the output ?