Relational operators and boolean values

A relational operator compares two values and gives a boolean, true or false, and == compares primitive values but, on objects, only asks whether two references point at the same object.

From AP Computer Science A.