Home Segments Top Top Previous Next

371: Mainline

In general, the value returned by a predicate must be a Boolean value; that is, in Java, the value must be either true or false.

The value of the expression 6 != 3, in which the inequality operator appears, is true. The value of the expression 6 == 3, in which the equality operator appears, is false.