public class java.lang
InstantiationException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception

Thrown when an application tries to create an instance of a class using the newInstance method in class Class, but the specified class object cannot be instantiated. The instantiation can fail for a variety of reasons including but not limited to:
version1.19, 11/30/05
sinceJDK1.0
See also newInstance()

Constructors
public InstantiationException()
Constructs an InstantiationException with no detail message.
public InstantiationException(String s)
Constructs an InstantiationException with the specified detail message.
sthe detail message.