What is boolean in Java?

74. What is boolean in Java?

  1. A value consisting of only true and false value
  2. A value consisting of 8 values
  3. Truthy value in java
  4. All of these

Answer: A) A value consisting of only true and false value

Explanation:

In Java, the boolean keyword is a primitive data type. It is used to store only two possible values, either true or false.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.