The exception name is as follows: java.lang.ArithmeticException: / by zero
Reason: This exception will be thrown when the dividend we define is an integer (short int long), and it cannot be zero when the dividend is an integer.
Solution: Check the type of dividend and change it.