Home »
MCQs »
Java MCQs
What is boolean in Java?
74. What is boolean in Java?
- A value consisting of only true and false value
- A value consisting of 8 values
- Truthy value in java
- 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.