Implementing .equals

Brad Mongar Java, Opinion 6 Comments

Attention: The following article was published over 9 years ago, and the information provided may be aged or outdated. Please keep that in mind as you read the post.Scenario You are working on a project and you have two objects. You want to know if, according to the business, they are the same item. So you call .equals. It returns …