| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Error
java.lang.LinkageError
java.lang.IncompatibleClassChangeError
java.lang.InstantiationError
public class InstantiationError
当应用程序试图使用 Java 的 new 结构来实例化一个抽象类或一个接口时,抛出该异常。 
 
通常由编译器捕获此错误;如果类定义中存在不兼容的更改,则此错误将只可能发生在运行时。
| 构造方法摘要 | |
|---|---|
| InstantiationError()构造不带详细消息的 InstantiationError。 | |
| InstantiationError(String s)构造带指定详细消息的 InstantiationError。 | |
| 方法摘要 | 
|---|
| 从类 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 | 
| 构造方法详细信息 | 
|---|
public InstantiationError()
InstantiationError。
public InstantiationError(String s)
InstantiationError。
s - 详细消息。| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。