Category Archives for Java

BigDecimal equals versus compareTo

Updated on January 30th, 2018While going through compareTo(T o) method in the Comparable interface, I came across a very interesting finding of BigDecimal equals versus compareTo and though about sharing about it. Usually, we require that two objects are equal if and only if they are compared as same For BigDecimal things are really interesting […]

Continue reading
1 14 15 16