Comparable and Comparator Interface in Java | Interview Question | Diff Comparable Vs Comparator

In this video we will see :
- Comparator and Comparable Interface in Java
- Difference between Comparator and Comparable Interface
- Example of Comparator and Comparable with Below JDK8 and after JDK8
- Creating List and adding values in List
- Collection.sort and List.sort method to sort the List
- When to use Comparable and when to use Comparator
- compareTo() & compare() method
- How to use comparable and How to use Comparator

#java #interview #JavaInterviewQuestion #Collection #CollectionFrameworks #comparablevscomparator #comparableandcomparator #comparablecomparatordifference

Interview Questions| Comparable vs Comparator in Java
Comparable Vs Comparator
Comparable and Comparator [Most Asked Interview Question]
Comparable and comparator Implementation in java with examples [Interview Question]
Sorting using Comparator

Another Video:
Java Program to remove duplicate elements and calculate the sum of numbers in array in JAVA (Hindi):

Java Interview Questions and Answers |[Part-1]| Most frequently asked Core Java Interview Questions:
Be the first to comment