Packages  This Package  Prev  Next  Index  

§1.36 Class InstantiationException

public  class  java.lang.InstantiationException
    extends  java.lang.Exception  (I-§1.30)
        // Constructors
    public InstantiationException();	§1.36.1
    public InstantiationException(String  s);	§1.36.2
Thrown when an application tries to create an instance of a class using the new-Instance method (I-§1.3.7) 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.
s - the detail message

Packages  This Package  Prev  Next  Index
Java API Document (HTML generated by dkramer on April 22, 1996)
Copyright © 1996 Sun Microsystems, Inc. All rights reserved
Please send any comments or corrections to