Comparable vs comparator ? when should i choose one over the another ?
Answers
Answered by
0
Comparable is used to compare itself by using with another object.
Comparator is used to compare two data types are objects.
Similar questions