160k views
2 votes
Identify the false statement.

a. A Boolean variable can hold only one of two values—true or false.
b. Java supports six relational operators that are used to make comparisons: =, <, >, =<, =>, and =!
c. An expression that contains a relational operator has a Boolean value.

1 Answer

3 votes

Final answer:

The false statement is b. Java supports six relational operators that are used to make comparisons.

Step-by-step explanation:

The false statement is b. Java supports six relational operators that are used to make comparisons: =, <, >, =<, =>, and =!

Java actually supports six relational operators but the correct ones are: <, >, <=, >=, ==, and !=. The = operator is the assignment operator, not a relational operator.

An expression that contains a relational operator has a Boolean value, which means the value of the expression will be either true or false based on the comparison made by the operator.

User Frantic
by
8.3k points