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

Tag

# #comparable

5 posts · 0 followers

[Manikandan S](https://hashnode.com/@manikandan4411) · [Oct 3](https://hashnode.com/posts/sorting-collections-in-java/6ac0ea11f9d73e488599416d)

### [Sorting Collections in Java](https://manikandan4411.hashnode.dev/sorting-collections-in-java?utm_source=hashnode&utm_medium=feed)

Author by Manikandan S - 3rd October 2026

5 min read · [manikandan4411.hashnode.dev](https://manikandan4411.hashnode.dev/sorting-collections-in-java?utm_source=hashnode&utm_medium=feed)

[Kunal Krishna](https://hashnode.com/@kunalkrishna85) · [Jan 2](https://hashnode.com/posts/comparison-in-java-comparator-vs-comparable/6957bdad673c0208590b2112)

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

The question is never whether to compare or not but how to compare?

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

[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)

[chanbasha](https://hashnode.com/@javaeduacademy) · [Dec 31, 2025](https://hashnode.com/posts/comparable-part1/6954e4b40fffff6d90e82a86)

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

Comparable : When we work with objects in Java, sometimes we want to sort them. For example : Sort employees by salary Sort students by marks Java does not know how to compare custom objects automatically.This is where Comparable comes in. What i...

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

[Chetan Datta](https://hashnode.com/@chetan77) · [Jun 9, 2024](https://hashnode.com/posts/19-java-priority-queue-compartor-vs-comparble/6665417a6391eb3acf886282)

### [19 Java - Priority Queue, Compartor vs Comparble](https://chetan77.hashnode.dev/19-java-priority-queue-compartor-vs-comparble?utm_source=hashnode&utm_medium=feed)

Priority Queue Queue is an interface, child of Collection interface. Generally Queue follows FIFO approach, but there are exceptions like PriorityQueue Supports all the methods available in Collection + some other methods mentioned below Method...

7 min read · [chetan77.hashnode.dev](https://chetan77.hashnode.dev/19-java-priority-queue-compartor-vs-comparble?utm_source=hashnode&utm_medium=feed)
