Boolean type. Uses, Its Possible Values.

Q12. One of the primitive types in Java is boolean. What is the boolean type? Where are boolean values used? What are its possible values?

Ans. The only values of type boolean are true and false. Expressions of type boolean are used in place where true/false values are expected.

2 thoughts on “Boolean type. Uses, Its Possible Values.”

Leave a Reply

Your email address will not be published. Required fields are marked *