The primitive data type boolean in Java can have the values ________ or ________.

  • Yes, No
  • True, False
  • 0, 1
  • Positive, Negative
In Java, the boolean data type can only have two possible values: true or false. These values represent binary logic where true means "yes" or "on," and false means "no" or "off." It is essential to understand the fundamental concept of boolean data type for conditional expressions and logical operations in Java.
Add your answer
Loading...

Leave a comment

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