Java Reference
In-Depth Information
•
The details of each of the operators.
When and how to use the
equals
and
hashCode
methods.
•
How to compare objects with their natural values and how to compare objects
with arbitrary values.
This chapter presents a lot of complex information in a fairly short space. I recommend reading it
again. Also, as I mentioned before, there's no substitute for doing some programming. You should create
a few classes that can be compared in various ways and do some fiddling with the less-obvious operators
(such as the bitwise operators).
•