boolean in Java

A boolean variable in Java can be created using the boolean keyword. Unlike C++, a numerical value cannot be assigned to a boolean variable in Java – only true or false can be used. The strings “true” or “false” are​ displayed on the console when a boolean variable is printed.
If not init, the default boolean value is false.
```
public class Main {
    static boolean b1 = true;
    static boolean b2;
    public static void main(String[] args) {
        System.out.println(b1);     // Outputs true
        System.out.println(b2);   // Outputs false
    }
}
```