java.lang.ArithmeticException: / by zero

Coderanch | abalfazl hossein | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    throws exception

    Coderanch | 7 years ago | abalfazl hossein
    java.lang.ArithmeticException: / by zero

    Root Cause Analysis

    1. java.lang.ArithmeticException

      / by zero

      at exceptionthrows.ExceptionDemo.divideByZeroAndPrint()
    2. exceptionthrows
      Main.main
      1. exceptionthrows.ExceptionDemo.divideByZeroAndPrint(ExceptionDemo.java:22)
      2. exceptionthrows.Main.main(Main.java:19)
      2 frames