Primitive type

boolean primitive

Represents true or false. There is no implicit conversion between boolean and numeric primitives.

Formal Syntax & Structure

java syntaxjava
boolean name = true;

Working Example

Example Snippetjava
public class Main {    public static void main(String[] args) {        boolean ready = false;        System.out.println(ready);    }}
Java Reference