---
title: "Discussion on \"Java hashCode() and equals()\" | Hashnode"
description: "Discussion on \"Java hashCode() and equals()\". I realized the importance of equals() and hashCode() while trying to remove an element from a List. The method hashCode() returns an Integer value of an object which is generated by a hashing algorithm. Collection framework depends on this for variou..."
url: "https://hashnode.com/posts/java-hashcode-and-equals/6042504491eeac2b7aee8062"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Java hashCode() and equals()](https://node.mnnk.dev/java-hashcode-and-equals?utm_source=hashnode&utm_medium=feed)

I realized the importance of equals() and hashCode() while trying to remove an element from a List. The method hashCode() returns an Integer value of an object which is generated by a hashing algorithm. Collection framework depends on this for variou...

Mar 5, 2021 · 3 min read · node.mnnk.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#class](https://hashnode.com/tag/class)
-   [#object-oriented-programming](https://hashnode.com/tag/object-oriented-programming)
-   [#object](https://hashnode.com/tag/object)

## Written by

[NaveenKumar M N](https://hashnode.com/@NaveenKumarMN)

@NaveenKumarMN · Bangalore, India

  
[View profile](https://hashnode.com/@NaveenKumarMN)

Software Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
