Divide in [JavaEE] BigDecimal, divisor cannot be 0. java.lang.ArithmeticException : / by zero

Divisor cannot be 0, which is our common sense

So you have to add a check, with = = or! = OK?

Therefore, it is correct to use equals

Read More: