Understanding Object Identity and Equality in Java

Peter Becker has a very good article on java.net that explains the differences between Object Identity and Object Equality.

If you have worked extensively with ORM solutions in Java, like Hibernate, then you are most likely already very familiar with the differences between Object Identity and Object Equality, and the implications and possible problems you can run into if you do not implement correct equals methods. This article gives a very good overview of the concepts and why they are important.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.