Name

InstantiationException

Synopsis

Signals an attempt to instantiate an interface or an abstract class.

java.lang.InstantiationException

Figure 10-34. java.lang.InstantiationException

public class InstantiationException extends Exception {
// Public Constructors
     public InstantiationException( );  
     public InstantiationException(String s);  
}

Thrown By

Class.newInstance( ), java.lang.reflect.Constructor.newInstance( ), org.xml.sax.helpers.ParserFactory.makeParser( )

Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.