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

Tag

# #java-comparable

3 posts · 0 followers

[chanbasha](https://hashnode.com/@javaeduacademy) · [Dec 31, 2025](https://hashnode.com/posts/comparable-part-2/695514d7d0fddfb882e2429b)

### [Comparable Part-2](https://javaeduacademy.hashnode.dev/comparable-part-2?utm_source=hashnode&utm_medium=feed)

Earlier, we learned how to sort the Car class by mileAge.In this article, we will focus on sorting cars by their color, helping us understand how Comparable works with String values. If you haven’t read it yet, you can check it out here:👉 Sorting C...

3 min read · [javaeduacademy.hashnode.dev](https://javaeduacademy.hashnode.dev/comparable-part-2?utm_source=hashnode&utm_medium=feed)

[V A S G Reddy](https://hashnode.com/@VASGReddy) · [Jun 29, 2024](https://hashnode.com/posts/comparable-and-comparator-in-java/66801295de1852b1dcd6cd6f)

### [Comparable and Comparator in Java](https://velagala.hashnode.dev/comparable-and-comparator-in-java?utm_source=hashnode&utm_medium=feed)

Sort custom java object

4 min read · [velagala.hashnode.dev](https://velagala.hashnode.dev/comparable-and-comparator-in-java?utm_source=hashnode&utm_medium=feed)

[Deepak Mishra](https://hashnode.com/@deepakm) · [Oct 5, 2023](https://hashnode.com/posts/comparable-vs-comparator-in-java/651e57d09711390382149a23)

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

Comparable: The Comparable interface is part of the Java language itself, and it is found in the java.lang package. When a class implements the Comparable interface, it means that instances of that class can be compared to each other for the purpos...

2 min read · [deepakmishra.hashnode.dev](https://deepakmishra.hashnode.dev/comparable-vs-comparator-in-java?utm_source=hashnode&utm_medium=feed)
