BigDecimal bd1 = new BigDecimal(8757).divide(new BigDecimal(12));
I get the following exception:
Caused by: java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal result.
Why is it the case? The result of the division should be 729.75 which has a terminating decimal expansion (.75).