Package java.lang |
![]() Previous |
![]() Java API |
![]() Index |
![]() Next |
public class java.lang.InstantiationException extends java.lang.Exception { // Constructors public InstantiationException(); public InstantiationException(String s); }
Thrown when an application tries to create an instance of a class using the new-Instance method in class Class, but the specified class object cannot be instantiated because it is an interface or is an abstract class.
public InstantiationException()Constructs an InstantiationException with no detail message.
public InstantiationException(String s)Constructs an InstantiationException with the specified detail message.
Parameter Description s the detail message
© 1996 Sun Microsystems, Inc. All rights reserved.