---
title: "#equals articles | Hashnode"
description: "Explore 7 articles tagged #equals on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/equals"
---

Tag

# #equals

7 posts · 0 followers

[EJ Jung](https://hashnode.com/@ejjung) · [Mar 4](https://hashnode.com/posts/java-override-equals-hashcode/69a898bc3b896f7ad67f8398)

### [Overriding equals() and hashcode()](https://ejjung.hashnode.dev/java-override-equals-hashcode?utm_source=hashnode&utm_medium=feed)

0\. Introduction When discussing HashMap in Java interviews, a very common follow-up question appears after explaining hash collisions: "Why do we need to override both equals() and hashCode()?" Howeve

4 min read · [ejjung.hashnode.dev](https://ejjung.hashnode.dev/java-override-equals-hashcode?utm_source=hashnode&utm_medium=feed)

[Pushkar Roy](https://hashnode.com/@roy2pushkar) · [May 16, 2025](https://hashnode.com/posts/java-equals-vs-whats-the-difference/68279dff30ca83884641be40)

### [☑️ Java: equals() vs == What’s the Difference?](https://java-concept.hashnode.dev/java-equals-vs-whats-the-difference?utm_source=hashnode&utm_medium=feed)

When learning Java, you’ll regular see == operator and .equals() used to compare values. They look similar, but they work very differently. In this post, we'll cover: ✅ What == really does✅ How .equals() is different✅ Use cases with int, float, Strin...

3 min read · [java-concept.hashnode.dev](https://java-concept.hashnode.dev/java-equals-vs-whats-the-difference?utm_source=hashnode&utm_medium=feed)

[José Ramón (JR)](https://hashnode.com/@josealonso) · [May 2, 2025](https://hashnode.com/posts/mastering-object-equality-in-java/681497232f66304d261b5685)

### [Mastering Object Equality in Java](https://blog.programwithjr.com/mastering-object-equality-in-java?utm_source=hashnode&utm_medium=feed)

Object Equality in Java Using equals() and hashCode()

6 min read · [blog.programwithjr.com](https://blog.programwithjr.com/mastering-object-equality-in-java?utm_source=hashnode&utm_medium=feed)

[Hemant Besra](https://hashnode.com/@hemantkumar) · [Dec 18, 2023](https://hashnode.com/posts/what-is-the-difference-between-equals-and-in-java/65809cf60c7c27299e5862cf)

### [What is the difference between equals() and == in Java?](https://codeinjava.hashnode.dev/what-is-the-difference-between-equals-and-in-java?utm_source=hashnode&utm_medium=feed)

What is the difference between equals() and == in Java?

2 min read · [codeinjava.hashnode.dev](https://codeinjava.hashnode.dev/what-is-the-difference-between-equals-and-in-java?utm_source=hashnode&utm_medium=feed)

[Nagendra Singh](https://hashnode.com/@nagendra1401) · [Nov 20, 2023](https://hashnode.com/posts/apex-customizing-equals-and-hashcode-methods-for-your-needs-in-custom-classes/655b864d4e27d147f14d52ab)

### [Apex: Customizing Equals and HashCode Methods for Your Needs in Custom Classes](https://connectsalesforce.hashnode.dev/apex-customizing-equals-and-hashcode-methods-for-your-needs-in-custom-classes?utm_source=hashnode&utm_medium=feed)

Optimize Apex classes with custom equals() and hashCode() for consistent comparison and efficient Set/Map organization

3 min read · [connectsalesforce.hashnode.dev](https://connectsalesforce.hashnode.dev/apex-customizing-equals-and-hashcode-methods-for-your-needs-in-custom-classes?utm_source=hashnode&utm_medium=feed)

[Parvathi Somasundaram](https://hashnode.com/@sparvathi6023) · [May 7, 2023](https://hashnode.com/posts/equals-vs/645828ea36873323f6d75c93)

### [equals() VS ==](https://codegallery.hashnode.dev/equals-vs?utm_source=hashnode&utm_medium=feed)

equals() is a method that compares the actual content of the object. "==" is an operator that compares the memory or reference location of an object in the heap. equals() The String equals() function compares two strings based on their data/content....

2 min read · [codegallery.hashnode.dev](https://codegallery.hashnode.dev/equals-vs?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/equals-vs/645828ea36873323f6d75c93)

[Anoop Tiwari](https://hashnode.com/@anoop9290) · [Feb 3, 2023](https://hashnode.com/posts/what-is-equals-method-in-java/63dd669d1003b26d23d134b2)

### [All About Equals method in Java](https://tech-notes.hashnode.dev/what-is-equals-method-in-java?utm_source=hashnode&utm_medium=feed)

Hi Guys this is Anoop, I am starting my blogging journey with basic topics of Java.Please feel free to write your reviews. Introduction As we all know there is an Object class in Java. who is the parent of each class by default? This Object class com...

2 min read · [tech-notes.hashnode.dev](https://tech-notes.hashnode.dev/what-is-equals-method-in-java?utm_source=hashnode&utm_medium=feed)

[1](https://hashnode.com/posts/what-is-equals-method-in-java/63dd669d1003b26d23d134b2)
