Skip to content
Scientech Easy
  • Home
  • Java
  • Collections
  • String
  • Selenium
  • Python
  • HTML
  • JavaScript
  • Computer
  • Computer GK
  • Interview
    • Java
      • Core Java Interview Question
      • String Interview Questions
    • Selenium
      • Java Interview Questions
      • Selenium Interview Questions
      • Automation Testing Interview Questions
      • TestNG Interview Questions
      • Selenium Framework Interview Questions
      • Company Interview Questions
  • Blog

When to use Comparable and Comparator in Java

Comparator in Java | Use, Example

Comparator in Java is an interface whose task is to compare objects of a user-defined class when the class does not implement the Comparable interface. In other words, Java Comparator is used when: Objects to be ordered do not have a natural ordering defined by Comparable interface. You want to … Read more

Categories Collections, Core Java Tags Comparator Interface in Java, Sorting using Comparator in Java, When to use Comparable and Comparator in Java

ScientechEasy.com

ScientechEasy.com is optimized for learning various technologies step by step for beginners and professionals. You will get the best realtime coding examples that will simplify to improve reading and basic understanding. When using this site, you will agree to have read and accepted our terms of use and privacy policy.

 

Popular Tutorials

  • Learn Computer
  • Learn Java
  • Learn Selenium
  • Learn Python
  • Learn HTML
  • Learn JavaScript
  • Learn Computer GK

Follow us on:

Contact Us:

Contact: [email protected]

Address: 4A, Shiv Shakti Complex, Joraphatak Road, Dhanbad, Jharkhand, India

  • Home
  • About Us
  • Contact
  • Privacy Policy
© Copyright 2023 Scientech Easy. All rights reserved.