Package java.lang Previous
Previous
Java API
Java API
Index
Index
Next
Next

Class InstantiationException

Constructors

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.


Constructors


InstantiationException

public InstantiationException() 

Constructs an InstantiationException with no detail message.


InstantiationException

public InstantiationException(String  s) 

Constructs an InstantiationException with the specified detail message.

ParameterDescription
s the detail message



© 1996 Sun Microsystems, Inc. All rights reserved.