java.lang.Boolean — how to abuse it
1 min readDec 1, 2020
Java language has primitive type and Object types
There are eight primitive types
- short
- int
- long
- float
- double
- char
java.lang.Boolean wraps a value of the primitive type boolean in an object. This has a single field of type boolean
Example
Boolean test = Boolean.FALSE; // java.lang does not need to be imported