java.lang · java.base · since Java 1.0
Boolean
public final class Boolean implements Comparable<Boolean>, Constable, SerializableBox 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. |