Java in a Nutshell

Previous Chapter 25
The java.lang Package
Next
 

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()


Previous Home Next
java.lang.AbstractMethodError (JDK 1.0) Book Index java.lang.ArrayIndexOutOfBoundsException (JDK 1.0)

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java