Choosing how to earn college credit? CLEP vs AP guide
| preferred AP College board partner for AP classes
easy Solved by 4 students

Java Boolean Data Type Properties

Mark
< Prev
Next >

All of the following statements about the boolean data type in Java are true EXCEPT:

boolean flag = true;
if(flag) {
    System.out.println("Flag is true");
}
A

Boolean values in Java represent true or false conditions.

B

Boolean expressions evaluate to either true or false.

C

Boolean variables can be used in control flow to decide branches.

D

A boolean variable can have a value of 2.

Hint
Did You Know?
Explain Why
Explain All Answers
Check Answer
Show Correct Answer
Report Question

Question Leaderboard

Rank
User
Correct Count
Attempt Count
Total Time
Score
#1ngvandangthanh11 - 100
#2michael.2103ll11 - 100
#3isaact.taylor5211 0m 49s 51
#4158397411 2m 45s -65
Items per page:
10
1 – 4 of 4
No comments yet. Be the first to comment!

AI Tutor

How can I help?

APFIVE © 2020.
Email: apfive@apfive.org|Instagram: @_apfive_|Privacy Policy|