## More about Objects and Classes

The relational operations on primitive data are ==, >=, <=, >, <, and !=. They compare two data values, when those values' type has an ordering. For example, integers are ordered by size or magnitude. The result of a relational operation is a boolean value: either True or False. The relational operators on objects like Strings are different, and they are expressed as methods. Pay special attention to the equality method, equals().

### 25. End of the Chapter

Answer:Yes. It happens all the time. Does that mean you are equal to them or == to them?

# End of the Chapter

You have reached the end of the chapter. If you missed some points, click on a subject that interests you to go to where it was discussed.