java.lang.ArithmeticException: Integer division by 0 Finally in printAverage().

Coderanch | Naresh Chaurasia | 3 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

    Different output while using printStackTrace()

    Coderanch | 3 years ago | Naresh Chaurasia
    java.lang.ArithmeticException: Integer division by 0 Finally in printAverage().

    Root Cause Analysis

    1. java.lang.ArithmeticException

      Integer division by 0 Finally in printAverage().

      at com.khalid.ch5.Average7.computeAverage()
    2. com.khalid.ch5
      Average7.main
      1. com.khalid.ch5.Average7.computeAverage(Average7.java:36)
      2. com.khalid.ch5.Average7.printAverage(Average7.java:20)
      3. com.khalid.ch5.Average7.main(Average7.java:7)
      3 frames