---
title: "Discussion on \"Comparable vs Comparator Explained in Java\" | Hashnode"
description: "Discussion on \"Comparable vs Comparator Explained in Java\". Learn How to Implement Custom Sorting for Your Java Objects Using Comparable and Comparator Interfaces"
url: "https://hashnode.com/posts/comparable-vs-comparator-explained-in-java/669c17b7e2de1c15f9055605"
---

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

Discussion

# [Comparable vs Comparator Explained in Java](https://blog.ashutoshkrris.in/comparable-vs-comparator-explained-in-java?utm_source=hashnode&utm_medium=feed)

Learn How to Implement Custom Sorting for Your Java Objects Using Comparable and Comparator Interfaces

Jul 20, 2024 · 13 min read · blog.ashutoshkrris.in  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#coding](https://hashnode.com/tag/coding)
-   [#interview](https://hashnode.com/tag/interview)

## Written by

[Ashutosh Krishna](https://hashnode.com/@ashutoshkrris)

@ashutoshkrris · Bengaluru, India

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

Building reliable software with Java, Spring Boot, Python, and the web

Software Engineer at OpenText passionate about building scalable web applications and backend systems. I work mainly with Java, Spring Boot, Python, and modern web technologies. I enjoy creating things for the internet, exploring new tech, and sharing what I learn along the way.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
