java.lang · java.base · since Java 1.0

Boolean

declaration
public final class Boolean implements Comparable<Boolean>, Constable, Serializable

Box for boolean with exactly two cached instances (TRUE/FALSE) and string parsing that treats anything but "true" (case-insensitive) as false.

Key methods

static boolean parseBoolean(String s)"true" (any case) → true; everything else → false — no exceptions.
static Boolean valueOf(boolean b)Returns the shared TRUE/FALSE instances.
static boolean logicalAnd/Or/Xor(boolean, boolean)Method-reference-friendly combinators.