// Boolean variable Example
class BoolTest
{
public static void main(String args[ ])
{
boolean b;
b = false;
System.out.println("b is " + b);b = true;
System.out.println("b is " + b);if(b)
{
System.out.println("This is executed.");
}}
}
Output:b is false
This is executed.