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.
Similar Posts:
- [Solved] mapper.xml Error: java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.getNString(Ljava/lang/String;)Ljava/lang/String; is abstract,
- [Solved] java.lang.Long cannot be cast to java.lang.Integer
- java.lang.ArithmeticException: Non-terminating decimal expansion; no exact representable decimal …
- [Solved] java.lang.OutOfMemoryError: GC overhead limit exceeded
- [Solved] Mybatis Mapping Error: nested exception is org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ‘id’ in ‘class java.lang.String
- [Solved] net.sf.json.JSONException: java.lang.ClassCastException: JSON keys must be strings.
- Javassist Compile Error: Type long_2nd (current frame, stack[2]) is not assignable to ‘java/lang/Long’
- How to Solve Jedis Error: java.lang.ClassCastException: java.lang.Long cannot be cast to [B
- [Solved] Redis Operation exception: java.lang.ClassCastException: java.lang.Long cannot be cast to [B
- [Solved] Jedis:Exception in thread “main” java.lang.VerifyError: Bad type on operand stack