title: Equality between 2 HashMap
body: <p>In the equals() method of my class, I am using a private instance HashMap variable to compare for the equality. However, 2 different objects still show being equal when comparing their HashMap variables. Further research brought me to the link : <a href="http://xahlee.info/java-a-day/hashmap_equality.html" rel="nofollow noreferrer">Link Here</a> . However, it just says that the reason for HashMap1.equals(HashMap2) not working is because &quot; apparantly Java's arrays cannot be tested for equality without writing a customized code.&quot;</p>
  <p>I did not understand this reason. Can anyone please guide me to a elaborate reason?</p>