ArithmeticException

王朝百科·作者佚名  2010-01-10
窄屏简体版  字體: |||超大  

java.lang

类 ArithmeticException

java.lang.Object

java.lang.Throwable

java.lang.Exception

java.lang.RuntimeException

java.lang.ArithmeticException

所有已实现的接口:

java.io.Serializable

--------------------------------------------------------------------------------

public class ArithmeticExceptionextends RuntimeException当出现异常的运算条件时,抛出此异常。例如,一个整数“除以零”时,抛出此类的一个实例。

从以下版本开始:

JDK1.0

另请参见:

序列化表格

--------------------------------------------------------------------------------

构造方法摘要

ArithmeticException()

构造不带详细消息的 ArithmeticException。

ArithmeticException(String s)

构造具有指定详细消息的 ArithmeticException。

方法摘要

从类 java.lang.Throwable 继承的方法

fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

从类 java.lang.Object 继承的方法

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

构造方法详细信息

ArithmeticException

public ArithmeticException()构造不带详细消息的 ArithmeticException。

--------------------------------------------------------------------------------

ArithmeticException

public ArithmeticException(String s)构造具有指定详细消息的 ArithmeticException。

参数:

s - 详细消息。

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航