Introduction:
Clear understanding of object equivalence is essential for SCJP
examination. Note the difference reference
identity and reference equivalence. In case of referenceidentity, == between the two references will always return true.
On the other hand, equivalence denotes value equality where in
the objects may or may not be identical but equals()
will return true.
The following self review questions are kept simple and illustrate the
above mentioned points. Once you are well versed with the concept underlying these equality
methods and operators, you
would be in a better position to tackle any question on this subject
in the actual examination.
Self Evaluation
Questions: (Total Questions: 16)
If you have any
suggestions which will help me to improve the contents, please email me your
feedback. My email id is sandeepnachane@yahoo.com