English, asked by alinakincsem7197, 1 year ago

Comparable vs comparator ? when should i choose one over the another ?

Answers

Answered by jeetenderbhatia
0

Comparable is used to compare itself by using with another object.

Comparator  is used to compare two data types are objects.

Similar questions