---
title: "Discussion on \"How to override equals(), hashCode() & toString() Java methods\" | Hashnode"
description: "Discussion on \"How to override equals(), hashCode() & toString() Java methods\". In this blog, we will see how we can override the 3 most common and useful methods of the java Object class."
url: "https://hashnode.com/posts/how-to-override-equals-hashcode-tostring-java-methods/6304700109d19537666ebb9a"
---

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

Discussion

# [How to override equals(), hashCode() & toString() Java methods](https://harshmalik.hashnode.dev/how-to-override-equals-hashcode-tostring-java-methods?utm_source=hashnode&utm_medium=feed)

In this blog, we will see how we can override the 3 most common and useful methods of the java Object class.

Aug 23, 2022 · 4 min read · harshmalik.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#developer](https://hashnode.com/tag/developer)
-   [#development](https://hashnode.com/tag/development)
-   [#dev](https://hashnode.com/tag/dev)

## Written by

[Harsh Malik](https://hashnode.com/@MalikHarsh)

@MalikHarsh · Noida, IN

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

Software Engineer

I am a Software engineer. I love to learn and write my learnings

## Responses 1

Markdown supported · ⌘↵ to post

[Prakhar Sinha](https://hashnode.com/@prakhar09)

[Aug 23, 2022](https://hashnode.com/posts/how-to-override-equals-hashcode-tostring-java-methods/6304700109d19537666ebb9a/comment/6304f0ec8f733542b1212a87)

Yeah... thanks for the amazing content 👍🏻
