How does `equals()` behave when comparing two objects of different types?
If `equals()` is used to compare objects of different types, it throws a `ClassCastException`.
I'm a bit disappointed, as `equals()` simply returns `false` when comparing objects of different types, not an exception.
Can you clarify how `equals()` handles different object types without throwing an exception?