Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.lang.ArithmeticException extends java.lang.RuntimeException { // Constructors public ArithmeticException(); public ArithmeticException(String s); }
Thrown when an exceptional arithmetic condition has occurred. For example, an integer "divide by zero" throws an instance of this class.
public ArithmeticException()Constructs an ArithmeticException with no detail message.
public ArithmeticException(String s)Constructs an ArithmeticException with the specified detail message.
Parameter Description s the detail message
© 1996 Sun Microsystems, Inc. All rights reserved.