[Chapter 25] 25.2 java.lang.ArithmeticException (JDK 1.0)

#

| Chapter 25 The java.lang Package |

## 25.2 java.lang.ArithmeticException (JDK 1.0)

###

A `RuntimeException` that signals an exceptional arithmetic condition, such as integer division by zero.

    public class ArithmeticException extends RuntimeException {
        // Public Constructors
                public ArithmeticException();
                public ArithmeticException(String s);
    }

### Hierarchy:

Object->Throwable(Serializable)->Exception->RuntimeException->ArithmeticException

### Thrown By:

BigDecimal.divide(), BigDecimal.setScale(), BigInteger.add(), BigInteger.clearBit(), BigInteger.divide(), BigInteger.divideAndRemainder(), BigInteger.flipBit(), BigInteger.modInverse(), BigInteger.pow(), BigInteger.remainder(), BigInteger.setBit(), BigInteger.testBit()

java.lang.AbstractMethodError (JDK 1.0) |  | java.lang.ArrayIndexOutOfBoundsException (JDK 1.0)