compare vs equals | Sololearn: Learn to code for FREE!


compare vs equals

When do i use comparator/Comparable and when do i use equals to compare classes?

1/19/2021 9:28:08 AM

Manfred h

1 Answer

New Answer


Sanoj Why do you want to compare class? You can see here to use different methods for comparison.