Conclusion

In Java, it’s recommended to use BigDecimal to represent the monetary calculations. However BigDecimal calculations are slower than those with primitive data type calculations, which may be an issue for heavy decimal calculations program, but there’s should be no problem for most programs.