---
title: "Discussion on \"Java Comparable Interface\" | Hashnode"
description: "Discussion on \"Java Comparable Interface\". From the first article “JAVA SORTING INTERFACES”, we established that Comparable interface is used to sort objects of the same class based on their natural ordering. It belongs to the java.lang package. In this article, we shall explain how the Compa..."
url: "https://hashnode.com/posts/java-comparable-interface/6155d1ebe896275f335df50b"
---

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

Discussion

# [Java Comparable Interface](https://mastertbal.hashnode.dev/java-comparable-interface?utm_source=hashnode&utm_medium=feed)

From the first article “JAVA SORTING INTERFACES”, we established that Comparable interface is used to sort objects of the same class based on their natural ordering. It belongs to the java.lang package. In this article, we shall explain how the Compa...

Sep 30, 2021 · 3 min read · mastertbal.hashnode.dev  
Updated Aug 9, 2024  
Read the article

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

## Written by

[MASTER-TBAL Oluwatobi](https://hashnode.com/@TBAL)

@TBAL

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

Budding software developer | Techical writer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
