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

0

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

Jonas E.

1 Answer

New Answer

+1

Sanoj Why do you want to compare class? You can see here to use different methods for comparison. https://code.sololearn.com/cZms6c3vg2w3/?ref=app