Java BigDecimal equals example
Method evaluates bigdecimal object values as well as the scales allocated to the values. Method returns true only when both bigdecimal objects as operands for the methods possess same value and same scale.
Java BigDecimal hashCode example
In this example bigdecimal class hashCode() method working is shown. Method returns integer values, both negative & positive. For every number method generates different hash codes.
Java BigDecimal add example
In this example working of .add() method is demonstrated in following two constructor forms add(BigDecimal augend) and add(BigDecimal augend, MathContext mc) respectively.