Question: is boolean a primitive data type?
Answer: The boolean Primitive. The simplest data type available to you in Java is the primitive type boolean. A boolean variable has only two possible values, true or false, which are represented with reserved words. ... boolean variables are often used when you want to keep track of the state of a simple object attribute.