Comparable vs Comparator in Java

Comparable

  • Comparable provides a single sorting sequence. In other words, we can sort the collection on the basis of a single element such as id…

--

--

--

Software Engineer at IFS R & D International (Pvt) Ltd || Former Software Engineer at Pearson Lanka || Former Associate Software Engineer at hSenid Mobile

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Stress and insecurity: a newbie’s first remote dev team experience

TryHackMe — SQL Injection Walkthrough

Tier System: Understanding NEARStarter’s membership hierarchy

I even worked one summer during high school cleaning colonoscopes.

Nervos CKB Development Update #31

What non-tech founders need to know about tech stack for startups

Day 3 of 30 Days of Code at HackerRank

Setting up firewall with docker & docker-compose

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Kasun Dissanayake

Kasun Dissanayake

Software Engineer at IFS R & D International (Pvt) Ltd || Former Software Engineer at Pearson Lanka || Former Associate Software Engineer at hSenid Mobile

More from Medium

Classes and Objects in Java

Sorter in Java

Java Wrapper classes

Java Fundamentals