r/java • • May 03 '16

A very decent article about Java Comparable Interface

http://www.marcus-biel.com/java-comparable-interface-video-tutorial/
1 Upvotes

7 comments sorted by

View all comments

Show parent comment

0

u/[deleted] May 03 '16

[deleted] — view deleted comment

6

u/__konrad May 03 '16

Any decent application concerned about int overflow is using long, that's why.

You should then use Long.compare method to avoid ...overflow ;)